date format ignores custom locale with proper name

RESOLVED INCOMPLETE

Status

Thunderbird
General
RESOLVED INCOMPLETE
6 years ago
11 months ago

People

(Reporter: Vladimir, Unassigned)

Tracking

Unspecified
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
User Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20100101 Firefox/10.0.2 Iceweasel/10.0.2
Build ID: 20120217213059

Steps to reproduce:

I hate perverted national date formats, so I made a custom locales.
By all rules I named them ru_RU.UTF-8@ISO and en_US.UTF-8@ISO 
Both custom locales copy all sections from their stock counterparts, except date settings, which are done in ISO format.



Actual results:

All other apps I've tested work fine, but Thunderbird (versions from 5 to 10) uses date format from stock ru_RU or en_US, no matter what. 

Also: If I create custom locale with incorrect name format (not language_territory.codeset@modifier) for example ru_ruISO.UTF-8, thunderbird works with it correctly. 
A problem in parsing '@' symbol?


Expected results:

Thunderbird should use current locale

Comment 1

6 years ago
Can you try replacing the @ with other character to check it is the problem?
(Reporter)

Comment 2

6 years ago
already did that, see above.

If you replace @ with other symbol, you will not get en_US.UTF-8[other_symbol]ISO, because generator will not recognize ISO as modifier, and locale will be en_US[other_symbol]ISO.UTF-8. 

In that case Thunderbird works, recognizes and uses date section from this locale. Conclusion: Thunderbird does not handle locale modifiers.
And does Firefox does ?
(Reporter)

Comment 4

6 years ago
Firefox's history shows dates in original format, ignoring the modifier.
Same goes for Thunderbird's Lightning

Updated

5 years ago
Component: General → Untriaged

Comment 5

5 years ago
Do you still see this in version 17 or newer? 
If not, please close by setting status to resolved, and resolution to worksforme.
If it fails, please supply additional information.
Thanks
Whiteboard: [closeme 2013-04-20]
(Reporter)

Comment 6

5 years ago
Just tested Thunderbird 17. It is still ignoring date format in locale with modifier.
Date format in my locale is set to YYYY-MM-DD, but thunderbird displays dates as DD.MM.YYYY.
It seems that nothing has changed.

Updated

5 years ago
Component: Untriaged → General
Whiteboard: [closeme 2013-04-20]
Version: 10 → 17

Comment 7

3 years ago
Vladimir,
Did it work prior to version 5?
Flags: needinfo?(pzs-fs)
Hardware: x86 → Unspecified
Summary: Thunderbird ignores custom locale with proper name → date format ignores custom locale with proper name
Version: 17 → 5.0
(Reporter)

Comment 8

3 years ago
I do not know.
Flags: needinfo?(pzs-fs)

Comment 9

a year ago
Is this still present in latest Thunderbird version?
Flags: needinfo?(pzs-fs)
Whiteboard: [closeme 2017-05-15]

Comment 10

a year ago
Zibi, the reporter claims this is also a problem in Firefox. Do you know the backend enough to see what locale names on Linux are used to read the format specifiers? Is the reporter doing out of spec modifications? Or can you please forward to the right people, thanks.
Flags: needinfo?(gandalf)
So, we recently switched how to customize date/time formatting. If it didn't work before (when we read date/time straight from the OS) it's unlikely to work better now.

On Linux, we only have bindings into Gnome and Ubuntu and both of them do not provide any date/time formatting beyond 12/24h time.

We also don't follow POSIX locale ID. We use BCP47 and ICU locale ID. You can read more at:

 - http://userguide.icu-project.org/locale
 - https://tools.ietf.org/html/bcp47

But the bottom line is - if you want to customize your locale, you need to follow ICU locale id.
Flags: needinfo?(gandalf)

Comment 12

11 months ago
Resolved per whiteboard
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 months ago
Flags: needinfo?(pzs-fs)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2017-05-15]
You need to log in before you can comment on or make changes to this bug.