LANG environment setting overrides LC_TIME
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
People
(Reporter: bughunter2, Unassigned)
Details
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
Updated•17 years ago
|
Comment 3•17 years ago
|
||
Comment 4•16 years ago
|
||
Comment 6•14 years ago
|
||
Comment 7•14 years ago
|
||
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Comment 11•6 years ago
|
||
The LC_TIME workaround broke with SeaMonkey-2.53: dates in Mail and Calendar are formatted according to the chosen locale (Language preferences). I guess this happens because of Bug 1426907.
Comment 12•5 years ago
|
||
Current (when I say defined I mean fr_FR.UTF-8):
- LC_TIME undefined, LC_ALL undefined, LANG undefined : Non-french dates, as expected.
- LC_TIME undefined, LC_ALL undefined, LANG defined : Non-french dates
- LC_TIME undefined, LC_ALL defined, LANG undefined : French dates \o/
- LC_TIME undefined, LC_ALL defined, LANG defined : French dates
- LC_TIME defined, LC_ALL undefined, LANG undefined : Non-french dates :,-(
- LC_TIME defined, LC_ALL undefined, LANG defined : Non-french dates
- LC_TIME defined, LC_ALL defined, LANG undefined : French dates
- LC_TIME defined, LC_ALL defined, LANG defined : French dates
So it strangely looks like only LC_ALL has any impact on date format in Thunderbird.
Comment 13•5 years ago
|
||
(Tested on 68.12.0 (64-bit), on Debian bullseye)
Comment 14•5 years ago
|
||
Looks fixed in 78 (but a new settings has been added to choose between application locale or regional locale).
Comment 15•5 years ago
|
||
Update: I'm now on Thunderbird 78.4.1 (the version with the "Date and Time Formatting" in Preferences).
I tried various combinations of LC_ALL, LC_TIME, with C, en_DK.UTF-8, fr_FR.UTF-8, en_US.UTF-8, but were unable to obtain ISO 8601 format, YYYY-MM-DD.
A step to enhance this would be to show an example of formatted date in the "Date and Time Formatting" section of preferences screen, and maybe to add a picker containing more choices than "Application locale" and "Regional settings locale"
| Reporter | ||
Comment 16•5 years ago
|
||
I look forward to testing v78 but am unable to do so with my current Ubuntu 18.04 setup. I am told that I will be able to move to 20.04 by the end of the year.
Julien, thank you for your help. It appears that at least part of my problem is that the date format for en_DK has changed somewhere along the line! This means that my testing was misleading. Strangely enough, so has en_CA. So if I use LC_ALL= LANG=C LC_TIME=en_CA.utf8 thunderbird, I get the desired behaviour with dates in YYYY-MM-DD format. Unfortunately, time is still shown in 12-hour am/pm format. Jason's examples and my examples from 11 years ago do not have the same behaviour today.
My deepest apologies to Mattias who asked 9 years ago "Reporter: Is this still a problem ?" The (very late) answer is that it appears to have been fixed but I can't tell you when the behaviour changed.
When I am able to test v78, I will post an update.
Regarding the Tony's comment:
If the reporter meant that LC_ALL overrides LC_TIME, this is intentional; in this case the bug is INVALID.
I have a hard time accepting that this is correct behaviour. The general should not override the specific; it should be the other way around. I can't think of a scenario where Tony's intentional behaviour is desirable.
Comment 17•5 years ago
|
||
LC_ALL= LANG=C LC_TIME=en_CA.utf8 thunderbird
In 78.4.1 too, this gives the "2020-11-09, 7:33 p.m." format too. So I have to find a LC_TIME that fits my brain.
Comment 18•5 years ago
|
||
Tried again some combinations, found:
LC_ALL= LANG=C LC_TIME=swedish thunderbird
which gives what I'm searching for: YYYY-MM-DD HH:MM.
If I set LC_ALL, LC_ALL wins, so it have to be unset or empty. But I can change LANG.
So:
LC_ALL= LC_TIME=swedish thunderbird
works for me (my LANG is en_US.UTF-8), but should LC_TIME win over LC_ALL?
Comment 19•5 years ago
|
||
Subtlty: If LC_ALL is unset, LC_TIME is not considered, but if LC_ALL is set but empty, LC_TIME is used. (stil on Thunderbird 78.4.1).
Comment 20•5 years ago
|
||
I'm on Thunderbird 78.5. I've tried various combinations of LC_ALL/LC_TIME/LANG but only LC_ALL seems to have any effect for me.
Interestingly, if LC_ALL is empty the options under "Date and Time Formatting" don't show any text.
Updated•3 years ago
|
Description
•