JAL-4477 Forcing UTF-8 system properties through install4j launch and getdown launch...
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 31 Oct 2024 17:56:55 +0000 (17:56 +0000)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 31 Oct 2024 17:56:55 +0000 (17:56 +0000)
getdown/lib/getdown-core.jar
getdown/lib/getdown-launcher-local.jar
getdown/lib/getdown-launcher.jar
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Application.java
getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/EnvConfig.java
j11lib/getdown-core.jar
j8lib/getdown-core.jar
utils/install4j/install4j11_template.install4j

index 5d149ac..e52042f 100644 (file)
Binary files a/getdown/lib/getdown-core.jar and b/getdown/lib/getdown-core.jar differ
index 28781a0..4ae1f62 100644 (file)
Binary files a/getdown/lib/getdown-launcher-local.jar and b/getdown/lib/getdown-launcher-local.jar differ
index fd2b05f..331e5d0 100644 (file)
Binary files a/getdown/lib/getdown-launcher.jar and b/getdown/lib/getdown-launcher.jar differ
index 5378f62..7f43b30 100644 (file)
@@ -1099,7 +1099,8 @@ public class Application
         addSystemPropertyIfNotNull(args, "installer.logfile");
         addSystemPropertyIfNotNull(args, "installer.logfile_append");
         addSystemPropertyIfNotNull(args, "installer.extrainfo");
-        addSystemPropertyIfNotNull(args, "sun.jnu.encoding");
+        args.add("-Dsun.jnu.encoding=UTF-8");
+        args.add("-Dfile.encoding=UTF-8");
         
         // backward compatibility (old getdown-launcher.jar)
         args.add("-Dgetdownappdir=" + getAppDir());
@@ -2089,7 +2090,7 @@ public class Application
         FileUtils.mkdirs(userAppDir);
       }
       if (!(applicationAppDir.isDirectory() && userAppDir.isDirectory())) {
-        log.warning("Parameter not a directory", "applicaitonAppDirName", applicationAppDirName, "userAppDirName", userAppDirName);
+        log.warning("Parameter not a directory", "applicationAppDirName", applicationAppDirName, "userAppDirName", userAppDirName);
         return false;
       }
       File configFile = new File(applicationAppDir, CONFIG_FILE);
index 7c4f669..d1ae75f 100644 (file)
@@ -21,6 +21,7 @@ import java.util.jar.Attributes;
 import java.util.jar.JarInputStream;
 import java.util.jar.Manifest;
 
+import com.threerings.getdown.data.Application;
 import com.threerings.getdown.util.Config;
 import com.threerings.getdown.util.LaunchUtil;
 import com.threerings.getdown.util.StringUtil;
@@ -30,7 +31,6 @@ import jalview.util.FileUtils;
 import jalview.util.HttpUtils;
 import jalview.util.LaunchUtils;
 
-import com.threerings.getdown.data.Application;
 
 /** Configuration that comes from our "environment" (command line args, sys props, etc.). */
 public final class EnvConfig {
index 5d149ac..e52042f 100644 (file)
Binary files a/j11lib/getdown-core.jar and b/j11lib/getdown-core.jar differ
index 5d149ac..e52042f 100644 (file)
Binary files a/j8lib/getdown-core.jar and b/j8lib/getdown-core.jar differ
index 312ee1b..705e0ea 100644 (file)
           <versionLine x="85" y="109" text="version ${compiler:sys.version}" />
         </text>
       </splashScreen>
-      <java mainClass="com.threerings.getdown.launcher.GetdownApp" vmParameters="-Dsun.jnu.encoding=UTF-8 -Duserdefaultappdir=true -Dpopulatedefaultappdir=true -Dappid=jalview -Dinstaller.template_version=${compiler:INSTALLER_TEMPLATE_VERSION} -Dinstaller.appdir=&quot;${launcher:sys.launcherDirectory}&quot; -Dinstaller.application_folder=&quot;${compiler:APPLICATION_FOLDER}&quot; -Dchannel.app_name=&quot;${compiler:JALVIEW_APPLICATION_NAME}&quot; -Dinstaller.icon=&quot;${compiler:PNG_ICON_FILE}&quot; -Dinstaller.mac_icons=&quot;${compiler:MAC_ICONS_FILE}&quot; -Dinstaller.logfile=&quot;~/.${compiler:LOG_FILE}&quot; -Dinstaller.logfile_append=true" arguments="&quot;&quot; &quot;&quot;">
+      <java mainClass="com.threerings.getdown.launcher.GetdownApp" vmParameters="-Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 -Duserdefaultappdir=true -Dpopulatedefaultappdir=true -Dappid=jalview -Dinstaller.template_version=${compiler:INSTALLER_TEMPLATE_VERSION} -Dinstaller.appdir=&quot;${installer:sys.contentDir}&quot; -Dinstaller.application_folder=&quot;${compiler:APPLICATION_FOLDER}&quot; -Dchannel.app_name=&quot;${compiler:JALVIEW_APPLICATION_NAME}&quot; -Dinstaller.icon=&quot;${compiler:PNG_ICON_FILE}&quot; -Dinstaller.mac_icons=&quot;${compiler:MAC_ICONS_FILE}&quot; -Dinstaller.logfile=&quot;~/.${compiler:LOG_FILE}&quot; -Dinstaller.logfile_append=true" arguments="&quot;&quot; &quot;&quot;">
         <classPath>
           <archive location="getdown-launcher.jar" failOnError="false" />
           <archive location="${compiler:GETDOWN_INSTALL_DIR}/getdown-launcher.jar" failOnError="false" />