[izpack-changes] r1747 - izpack-src/branches/3.10/src/lib/com/izforge/izpack/installer
noreply at berlios.de
noreply at berlios.de
Sun Feb 18 19:24:10 CET 2007
Author: vralev
Date: 2007-02-18 19:23:57 +0100 (Sun, 18 Feb 2007)
New Revision: 1747
Modified:
izpack-src/branches/3.10/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/branches/3.10/src/lib/com/izforge/izpack/installer/GUIInstaller.java
===================================================================
--- izpack-src/branches/3.10/src/lib/com/izforge/izpack/installer/GUIInstaller.java 2007-02-18 14:54:59 UTC (rev 1746)
+++ izpack-src/branches/3.10/src/lib/com/izforge/izpack/installer/GUIInstaller.java 2007-02-18 18:23:57 UTC (rev 1747)
@@ -298,6 +298,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.
+ 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