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

noreply at berlios.de noreply at berlios.de
Sun Feb 18 15:39:02 CET 2007


Author: vralev
Date: 2007-02-18 15:38:44 +0100 (Sun, 18 Feb 2007)
New Revision: 1745

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-18 14:29:15 UTC (rev 1744)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java	2007-02-18 14:38:44 UTC (rev 1745)
@@ -308,7 +308,7 @@
                 // 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);
+                if("unix".equals(syskey)) Locale.setDefault(Locale.ENGLISH);
                 String syslaf = UIManager.getSystemLookAndFeelClassName();
                 UIManager.setLookAndFeel(syslaf);
                 if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel)




More information about the izpack-changes mailing list