Bug 686185: GDateTime Transcoding fails on OSX
authorJohn Ralls <jralls@ceridwen.us>
Thu, 8 Nov 2012 16:35:23 +0000 (08:35 -0800)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 8 Nov 2012 16:37:54 +0000 (08:37 -0800)
Better fix than d5df0a10f. Thanks to Christian Persch for pointing this
out.

glib/tests/gdatetime.c

index 5d79602..4def53e 100644 (file)
@@ -885,7 +885,7 @@ test_non_utf8_printf (void)
       g_free (oldlocale);
       return;
     }
-  if (g_strcmp0 (g_get_codeset (), "UTF-8") == 0)
+  if (g_get_charset (NULL))
     {
       g_test_message ("locale ja_JP.eucjp may be available, but glib seems to think that it's equivalent to UTF-8, skipping non-UTF-8 tests.");
       g_test_message ("This is a known issue on Darwin");