[izpack-changes] r1744 - izpack-src/trunk/src/lib/com/izforge/izpack/installer

noreply at berlios.de noreply at berlios.de
Sun Feb 18 15:29:54 CET 2007


Author: vralev
Date: 2007-02-18 15:29:15 +0100 (Sun, 18 Feb 2007)
New Revision: 1744

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java
Log:
In Linux we will use the English locale, because of a bug in
JRE6. In Korean, Persian, Chinese, japanese and some other
locales the installer throws and exception and doesn't load
at all. See http://jira.jboss.com/jira/browse/JBINSTALL-232.
This is a workaround until this bug gets fixed.

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java	2007-02-17 13:50:49 UTC (rev 1743)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java	2007-02-18 14:29:15 UTC (rev 1744)
@@ -303,6 +303,12 @@
         {
             if (!"mac".equals(syskey))
             {
+                // In Linux we will use the English locale, because of a bug in
+                // JRE6. In Korean, Persian, Chinese, japanese and some other
+                // locales the installer throws and exception and doesn't load
+                // at all. See http://jira.jboss.com/jira/browse/JBINSTALL-232.
+                // This is a workaround until this bug gets fixed.
+                Locale.setDefault(Locale.ENGLISH);
                 String syslaf = UIManager.getSystemLookAndFeelClassName();
                 UIManager.setLookAndFeel(syslaf);
                 if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel)




More information about the izpack-changes mailing list