2003/09/10 08:12:15
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:15:29 +0000 (07:15 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:15:29 +0000 (07:15 +0000)
darcs-hash:20040130071529-2ba56-c72216efeba66af428cfe2b9e307676a62b23946.gz

upstream/gcc-3.3/patches/force-locale.patch [new file with mode: 0644]

diff --git a/upstream/gcc-3.3/patches/force-locale.patch b/upstream/gcc-3.3/patches/force-locale.patch
new file mode 100644 (file)
index 0000000..eda75df
--- /dev/null
@@ -0,0 +1,20 @@
+--- libjava/java/util/Locale.java      Wed Nov 27 14:41:07 2002
++++ libjava/java/util/Locale.java      Wed Sep 10 00:10:27 2003
+@@ -193,10 +193,16 @@
+    * null. Note the logic in the main constructor, to detect when
+    * bootstrapping has completed.
+    */
+-  private static Locale defaultLocale =
++
++  // XWT-specific hack: we're having a lot of trouble with Locales
++  // and static linkage, so we force this to a known locale.
++  private static Locale defaultLocale = new Locale("en", "", "");
++
++      /*
+     new Locale(System.getProperty("user.language", "en"),
+                System.getProperty("user.region", ""),
+                System.getProperty("user.variant", ""));
++      */
+   /**
+    * Convert new iso639 codes to the old ones.