Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Cannot change thunderbird date format (KDE4)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Thu Feb 19, 2009 2:12 pm    Post subject: [solved] Cannot change thunderbird date format (KDE4) Reply with quote

Thunderbird does not recognize my system's date preferences. It always defaults to the American format (MM/DD/YYYY). I prefer DD/MM/YYYY. All efforts to change this have been in vain, would really appreciate some help here. I am desperate enough to change to Kmail right now.

Rahul
_________________
Who shall guard the guards?


Last edited by rahulthewall on Sat Feb 21, 2009 4:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Thu Feb 19, 2009 11:34 pm    Post subject: Reply with quote

My thunderbird seems to read my locale settings correctly. What is the output of locale in a terminal?
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Fri Feb 20, 2009 10:55 am    Post subject: Reply with quote

Code:
rahul@googly ~ $ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Fri Feb 20, 2009 10:01 pm    Post subject: Reply with quote

There's your problem. You'll want to read this.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sat Feb 21, 2009 2:55 pm    Post subject: Reply with quote

Code:

rahul@googly ~ $ cat /etc/env.d/02locale
LANG="en_GB.utf8@euro"
LC_COLLATE="C"


Code:

rahul@googly ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.utf8@euro
LC_CTYPE="en_GB.utf8@euro"
LC_NUMERIC="en_GB.utf8@euro"
LC_TIME="en_GB.utf8@euro"
LC_COLLATE=C
LC_MONETARY="en_GB.utf8@euro"
LC_MESSAGES="en_GB.utf8@euro"
LC_PAPER="en_GB.utf8@euro"
LC_NAME="en_GB.utf8@euro"
LC_ADDRESS="en_GB.utf8@euro"
LC_TELEPHONE="en_GB.utf8@euro"
LC_MEASUREMENT="en_GB.utf8@euro"
LC_IDENTIFICATION="en_GB.utf8@euro"
LC_ALL=


Can someone please explain the error.
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Sat Feb 21, 2009 3:07 pm    Post subject: Reply with quote

The three it mentions are not set. You should set all LC variables to something sane, and there is no point in leaving them at C or POSIX. I don't know why the page I linked sets LC_COLLATE to C. Probably just for demonstration. If you don't mind setting the locale for the entire system (for all users), try something like this instead:
Code:
LANG="en_GB.utf8@euro"
LC_ALL="en_GB.utf8@euro"

_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sat Feb 21, 2009 3:47 pm    Post subject: Reply with quote

Cuber wrote:
The three it mentions are not set. You should set all LC variables to something sane, and there is no point in leaving them at C or POSIX. I don't know why the page I linked sets LC_COLLATE to C. Probably just for demonstration. If you don't mind setting the locale for the entire system (for all users), try something like this instead:
Code:
LANG="en_GB.utf8@euro"
LC_ALL="en_GB.utf8@euro"


Makes no difference.

Code:

rahul@googly ~ $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.utf8@euro
LC_CTYPE="en_GB.utf8@euro"
LC_NUMERIC="en_GB.utf8@euro"
LC_TIME="en_GB.utf8@euro"
LC_COLLATE="en_GB.utf8@euro"
LC_MONETARY="en_GB.utf8@euro"
LC_MESSAGES="en_GB.utf8@euro"
LC_PAPER="en_GB.utf8@euro"
LC_NAME="en_GB.utf8@euro"
LC_ADDRESS="en_GB.utf8@euro"
LC_TELEPHONE="en_GB.utf8@euro"
LC_MEASUREMENT="en_GB.utf8@euro"
LC_IDENTIFICATION="en_GB.utf8@euro"
LC_ALL=en_GB.utf8@euro

_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
pianosaurus
l33t
l33t


Joined: 19 Apr 2004
Posts: 944
Location: Bash$

PostPosted: Sat Feb 21, 2009 3:59 pm    Post subject: Reply with quote

Hm. Maybe you don't have that locale installed, then. Make sure en_GB.utf8 utf-8 is listed in /etc/locale.gen and run locale-gen.
_________________
PKA Cuber
Please add [SOLVED] to the subject of your original post when you feel that your problem is resolved.
Adopt an unanswered post
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Sat Feb 21, 2009 4:36 pm    Post subject: Reply with quote

Code:
/etc/locale.gen
en_GB.UTF-8@euro UTF-8
en_GB ISO-8859-1


Code:

/etc/env.d/02locale
LANG="en_GB.utf8@euro"
LC_CTYPE="C"


This solves all my locale problems. However, since I already uninstalled Thunderbird and switched to Kmail as I was frustrated with the American Date Format :P, I cannot check whether thunderbird is working correctly or not. However, I think that it would work well with this :), and therefore I am marking the thread as solved.

Thanks a lot Cuber for your help.

Cheers
Rahul
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum