After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729858 - Fix and enhance GDatetime for Windows
Fix and enhance GDatetime for Windows
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: win32
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-win32 maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-09 09:08 UTC by Fan, Chun-wei
Modified: 2018-05-24 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix and Enhance GTimezone (10.21 KB, patch)
2014-05-09 09:16 UTC, Fan, Chun-wei
none Details | Review
Fix the GDatetime tests on Windows (2.76 KB, patch)
2014-05-12 04:35 UTC, Fan, Chun-wei
none Details | Review

Description Fan, Chun-wei 2014-05-09 09:08:00 UTC
Hi,

From bug 719344, there was a patch set to fix and enhance GDatetime on Windows, as in its current state, it does not work very well for non-western locales of Windows, at least (or even non-English Windows).

This acts as the bug report to follow up on the patches to remedy this, as bug 719344 seems to be a bit too generic in some ways.
Comment 1 Fan, Chun-wei 2014-05-09 09:16:44 UTC
Created attachment 276223 [details] [review]
Fix and Enhance GTimezone

Hi,

This updates GTimezone so that when it queries the Windows registry for standard time and daylight saving time names, it would first query the MUI entries for these in the registry, where possible (i.e. Windows Vista and later).  When we query the names in the existing implementation, the names would differ depending on the language version of Windows, which is not optimal, so that we could always get the English strings, for example.

This also fixes GTimezone in a way that get the strings tzi->DaylightName and tzi->StandardName correctly, as these strings are actually UTF-16 strings, so that the correct names are acquired as a result.
Comment 2 Fan, Chun-wei 2014-05-12 04:35:24 UTC
Created attachment 276355 [details] [review]
Fix the GDatetime tests on Windows

Hi,

This updates the GDatetime tests on Windows so that it will make use of the new MUI items from the registry, if possible, so that we can set the language/locale of the thread.

With blessings, thank you!
Comment 3 Fan, Chun-wei 2014-11-11 07:25:49 UTC
Hi,

pinging this patch, as this would attempt to make GTimezone work better on non-western locales of Windows.

With blessings, thank you!
Comment 4 Fan, Chun-wei 2015-02-06 05:38:14 UTC
Hi,

Any comments or suggestions about the patch here?

With blessings, thank you!
Comment 5 GNOME Infrastructure Team 2018-05-24 16:30:43 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/870.