File glib-2.40.0-goption-disable-localization.patch of Package mingw32-glib2

--- glib/goption.c
+++ glib/goption.c
@@ -485,6 +485,23 @@
   return context->ignore_unknown;
 }
 
+void
+g_option_context_set_delocalize (GOptionContext *context,
+                                 gboolean        delocalize)
+{
+  g_return_if_fail (context != NULL);
+
+  context->strv_mode = !delocalize;
+}
+
+gboolean
+g_option_context_get_delocalize (GOptionContext *context)
+{
+  g_return_if_fail (context != NULL);
+
+  return !context->strv_mode;
+}
+
 /**
  * g_option_context_add_group:
  * @context: a #GOptionContext
--- glib/goption.h
+++ glib/goption.h
@@ -307,6 +307,9 @@
 							     gboolean	     ignore_unknown);
 GLIB_AVAILABLE_IN_ALL
 gboolean        g_option_context_get_ignore_unknown_options (GOptionContext *context);
+void            g_option_context_set_delocalize (GOptionContext *context,
+                                                 gboolean        ignore_unknown);
+gboolean        g_option_context_get_delocalize (GOptionContext *context);
 
 GLIB_AVAILABLE_IN_ALL
 void            g_option_context_add_main_entries (GOptionContext      *context,