summaryrefslogblamecommitdiff
path: root/user/glib/musl-no-locale.patch
blob: 33b3c32dfed79948de6186cbc475f77eb0db3eb4 (plain) (tree)





















































                                                                                   








                                                                                                  
--- glib-2.52.1/glib/tests/option-context.c.old	2016-10-22 05:21:34.000000000 +0000
+++ glib-2.52.1/glib/tests/option-context.c	2017-08-20 23:14:46.364133517 +0000
@@ -638,7 +638,7 @@
   
   old_locale = g_strdup (setlocale (LC_NUMERIC, locale));
   current_locale = setlocale (LC_NUMERIC, NULL);
-  if (strcmp (current_locale, locale) != 0)
+  //if (strcmp (current_locale, locale) != 0)
     {
       fprintf (stderr, "Cannot set locale to %s, skipping\n", locale);
       goto cleanup; 
--- glib-2.52.1/glib/tests/gdatetime.c.old	2017-03-16 20:12:05.000000000 -0500
+++ glib-2.52.1/glib/tests/gdatetime.c	2017-08-20 22:20:37.805908983 -0500
@@ -1068,7 +1068,7 @@
 
   oldlocale = g_strdup (setlocale (LC_ALL, NULL));
   setlocale (LC_ALL, "fa_IR.utf-8");
-  if (strstr (setlocale (LC_ALL, NULL), "fa_IR") != NULL)
+  if ((1 == 0) && strstr (setlocale (LC_ALL, NULL), "fa_IR") != NULL)
     {
       TEST_PRINTF_TIME (23, 0, 0, "%OH", "\333\262\333\263");    /* '23' */
       TEST_PRINTF_TIME (23, 0, 0, "%OI", "\333\261\333\261");    /* '11' */
--- glib-2.52.1/glib/tests/convert.c.old	2016-10-22 00:21:34.000000000 -0500
+++ glib-2.52.1/glib/tests/convert.c	2017-08-20 22:51:48.363430954 -0500
@@ -707,7 +707,7 @@
 
   g_test_add_func ("/conversion/no-conv", test_no_conv);
   g_test_add_func ("/conversion/iconv-state", test_iconv_state);
-  g_test_add_func ("/conversion/illegal-sequence", test_one_half);
+  //g_test_add_func ("/conversion/illegal-sequence", test_one_half);
-  g_test_add_func ("/conversion/byte-order", test_byte_order);
+  //g_test_add_func ("/conversion/byte-order", test_byte_order);
   g_test_add_func ("/conversion/unicode", test_unicode_conversions);
   g_test_add_func ("/conversion/filename-utf8", test_filename_utf8);
--- glib-2.54.2/glib/tests/collate.c.old	2017-03-08 21:37:21.000000000 -0600
+++ glib-2.54.2/glib/tests/collate.c	2018-03-01 01:07:56.957714447 -0600
@@ -279,7 +279,7 @@
 
   g_setenv ("LC_ALL", "en_US", TRUE);
   locale = setlocale (LC_ALL, "");
-  if (locale == NULL || strcmp (locale, "en_US") != 0)
+  //if (locale == NULL || strcmp (locale, "en_US") != 0)
     {
       g_test_message ("No suitable locale, skipping tests");
       missing_locale = TRUE;
--- glib-2.54.2/tests/run-collate-tests.sh.old	2016-10-22 00:17:10.000000000 -0500
+++ glib-2.54.2/tests/run-collate-tests.sh	2018-03-01 01:22:01.107722429 -0600
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+exit 77
+
 fail ()
 {
   echo "Test failed: $*"
--- glib-2.56.1/glib/tests/gdatetime.c.old	2018-07-02 21:11:49.890000000 -0500
+++ glib-2.56.1/glib/tests/gdatetime.c	2018-07-02 21:19:30.340000000 -0500
@@ -2329,7 +2329,6 @@
   g_test_add_func ("/GDateTime/printf", test_GDateTime_printf);
   g_test_add_func ("/GDateTime/non_utf8_printf", test_non_utf8_printf);
   g_test_add_func ("/GDateTime/strftime", test_strftime);
-  g_test_add_func ("/GDateTime/strftime/error_handling", test_GDateTime_strftime_error_handling);
   g_test_add_func ("/GDateTime/modifiers", test_modifiers);
   g_test_add_func ("/GDateTime/month_names", test_month_names);
   g_test_add_func ("/GDateTime/to_local", test_GDateTime_to_local);