Closed Bug 236147 Opened 20 years ago Closed 18 years ago

thunderbird ignores LC_TIME, uses LANG instead

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: xslf, Assigned: mscott)

Details

Mozilla Thunderbird 0.5 (20040229)- installed from source via gentoo emerge.
For some reason, it displays the dates in US format, ignoring my LC_TIME settings.

To repro:
starting thunderbird with:
 LC_TIME=he_IL.UTF-8  /usr/bin/thunderbird
Gives US Dates (incurrect), while starting thunderbird with
 LANG=he_IL.UTF-8  /usr/bin/thunderbird
gives currect Israeli (dd/mm/yy) dates.

Expected: Thunderbird should not ignore LC_TIME, and use it when it is set.

More info:

Output of locale:

sforbes@amd sforbes $ locale
LANG=en_US.UTF-8
LC_CTYPE=he_IL.UTF-8
LC_NUMERIC=he_IL.UTF-8
LC_TIME=he_IL.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=he_IL.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=he_IL.UTF-8
LC_NAME=he_IL.UTF-8
LC_ADDRESS=he_IL.UTF-8
LC_TELEPHONE=he_IL.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=he_IL.UTF-8
LC_ALL=
Since when was a timestamp in UTF-8?
What happens if you export LC_TIME="he_IL" ?
Doesn't work for me either, and my locale isn't UTF-8.

My locale is en_US@ISO, which is one I created based on en_US that displays
dates in ISO8601 format.  It works correctly for GNU command line tools such as
ls. e.g.

% LC_TIME="en_US@ISO" ls -la /usr/local/mozilla/thunderbird/thunderbird
-rwxr-xr-x  1 root root 6649 2004-12-06 06:39
/usr/local/mozilla/thunderbird/thunderbird

If I set LC_TIME="en_US@ISO" for thunderbird the same way, it ignores the locale
and displays dates in US format.

If I set LANG="en_US@ISO", same result.

If I set LC_ALL="en_US@ISO" I get a warning from Gdk:

(thunderbird-bin:31616): Gdk-WARNING **: locale not supported by Xlib
(thunderbird-bin:31616): Gdk-WARNING **: can not set locale modifiers

...but again, Thunderbird ignores the locale information.

Mepis 2004.6, Thunderbird 1.0 (20041206) downloaded from mozilla.org.
Still seeing this? Is the LC_TIME locale you are trying to use available in the list displayed by "locale -a"? 
en_DK.utf8 is now working, so I guess this can be closed.
-> WFM per comment 4.

(and for reference, if someone has problems with this - the locale have to exist, so playing around with 'locale-gen' and 'dpkg-reconfigure locales' might help.)
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.