diff --git a/glib/tests/gdatetime.c b/glib/tests/gdatetime.c index 5d7960235..4def53e51 100644 --- a/glib/tests/gdatetime.c +++ b/glib/tests/gdatetime.c @@ -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");