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 707599 - glib/tests/gdatetime: Add test for the C locale
glib/tests/gdatetime: Add test for the C locale
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: datetime
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 698952 (view as bug list)
Depends on:
Blocks: 698942 699325
 
 
Reported: 2013-09-05 23:15 UTC by Bastien Nocera
Modified: 2018-05-24 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib/tests/gdatetime: Add test for the C locale (1.78 KB, patch)
2013-09-05 23:15 UTC, Bastien Nocera
none Details | Review
glib/tests/gdatetime: Add test for the C locale (1.77 KB, patch)
2017-06-13 11:35 UTC, Bastien Nocera
none Details | Review

Description Bastien Nocera 2013-09-05 23:15:10 UTC
So we can fix https://bugzilla.gnome.org/show_bug.cgi?id=698942 properly
Comment 1 Bastien Nocera 2013-09-05 23:15:12 UTC
Created attachment 254217 [details] [review]
glib/tests/gdatetime: Add test for the C locale

This should work, but fails.
Comment 2 Bastien Nocera 2013-09-05 23:22:18 UTC
Either GDateTime's format needs to work with UTF-8 characters in an ASCII encoding locale, or it needs to emit a warning (and docs to be updated to mention this possible failure case).
Comment 3 Bastien Nocera 2013-09-06 18:37:30 UTC
*** Bug 698952 has been marked as a duplicate of this bug. ***
Comment 4 Matthias Clasen 2013-09-08 21:08:11 UTC
Review of attachment 254217 [details] [review]:

Otherwise, looks reasonable, although I'm not sure what (if any) guarnatees we can make for running in the C locale.

::: glib/tests/gdatetime.c
@@ +913,3 @@
+  if (strstr (setlocale (LC_ALL, NULL), "C") == NULL)
+    {
+      g_test_message ("locale ja_JP.eucjp not available, skipping non-UTF8 tests");

Copy-paste error in the message
Comment 5 Matthias Clasen 2013-09-08 21:08:34 UTC
Review of attachment 254217 [details] [review]:

Otherwise, looks reasonable, although I'm not sure what (if any) guarantees we can make for running in the C locale.

::: glib/tests/gdatetime.c
@@ +913,3 @@
+  if (strstr (setlocale (LC_ALL, NULL), "C") == NULL)
+    {
+      g_test_message ("locale ja_JP.eucjp not available, skipping non-UTF8 tests");

Copy-paste error in the message
Comment 6 Bastien Nocera 2017-06-13 11:35:23 UTC
Created attachment 353667 [details] [review]
glib/tests/gdatetime: Add test for the C locale

This should work, but fails.
Comment 7 GNOME Infrastructure Team 2018-05-24 15:39:53 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/755.