Closed
Bug 1337067
Opened 8 years ago
Closed 3 years ago
Improve the use of Win32 API in OSPreferences
Categories
(Core :: Widget: Win32, enhancement, P3)
Core
Widget: Win32
Tracking
()
RESOLVED
DUPLICATE
of bug 1593414
People
(Reporter: zbraniecki, Unassigned, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: tpi:+)
Attachments
(1 file)
546.65 KB,
image/png
|
Details |
In bug 1333184 we're introducing OSPreferences API. In this bug we'll work on using more of the Win32 API to handle more of the information from the OS.
![]() |
||
Updated•8 years ago
|
Severity: normal → enhancement
Priority: -- → P3
Whiteboard: tpi:+
Reporter | ||
Comment 1•8 years ago
|
||
It seems that the current API does not return the current system locale in Windows 10.
Since this code is what we use to retrieve system locale for telemetry (among others) is may mean that we have incorrect data about user system locales...
Comment 2•8 years ago
|
||
On Win32 and Mac, nsSystemInfo already includes a "countryCode" property that includes the ISO 2-character country code. I know that isn't a complete solution, but at least part of the required code already exists somewhere.
Comment 3•8 years ago
|
||
I take that back; I think that countryCode reflects the user's current location (if available), not necessarily the configured locale.
Reporter | ||
Updated•8 years ago
|
Mentor: gandalf
Keywords: good-first-bug
Reporter | ||
Comment 4•7 years ago
|
||
I got a feedback on our use of WinAPI from Microsoft's Jeff Genovy.
It seems that since we dropped support for Windows XP we can switch away from using LCIDs.
Reporter | ||
Comment 6•7 years ago
|
||
More feedback from Microsoft:
- they separate three, relevant to us, classes of locales:
- Display Locale: the locale Windows is localized to
- App locale: the locale user selected for apps to be in (including WIndows Store apps)
- User locale: the locale regional preferences should be in.
It seems that at the moment we use the User locale for RegionalPrefs which is the right match (yay!) and we use something pretty obsolete and wrong for the OSPreferences:SystemLocale.
SystemLocale serves multiple roles in Gecko:
- inform telemetry on user's OS locale
- inform our font fallbacking
- (future use)inform our UI locale selection
We may end up wanting to separate those two APIs:
- Display Locale for telemetry and fonts
- App locale for our UI locale selection and fonts
I'm not sure how to name the new variable/API - I like `OSPreferences:SystemLocale` as the name of the OS locale (Display Locale on Windows), so the new name would be for the locale that Windows has set for the apps to be in.
Maybe `OSPreferences::AppLocales` or `OSPreferences::RequestedAppLocales`?
Comment 8•3 years ago
|
||
OSPreferences
has changed substantially since it first landed. Is this bug still relevant? If so, what specific things should be implemented here?
Flags: needinfo?(zibi)
Reporter | ||
Comment 9•3 years ago
|
||
Moving NI to Greg and Dan who are taking over this area.
Flags: needinfo?(zibi)
Flags: needinfo?(gtatum)
Flags: needinfo?(dminor)
Comment 10•3 years ago
|
||
:jkew reworted OSPreferences::ReadSystemLocales quite a bit in Bug 1593414, so I think we're ok to close this one.
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(gtatum)
Flags: needinfo?(dminor)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•