Skip to content

Commit

Permalink
[product] Force UTF8 file encoding on Windows platforms.
Browse files Browse the repository at this point in the history
see #377

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Nov 26, 2015
1 parent 2672d06 commit c97b316
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Expand Up @@ -222,6 +222,26 @@ describe "Runtime Environment FAQ" {
true
}

/* When installing Janus as an SRE in the Eclipse interface, the plugin loads the Jar file of the
* SRE with the default API.
* The Jar archiver uses the default file encoding of the operating system.
* On Linux and MacOS 10, it is almost UTF-8. On Windows, it is Latin1. And on MacOS (before 10),
* it is Mac-Roman.
*
* <p>Unfortunately, the Janus Jar file is generated on a Linux operating system (UTF-8).
* When the Java virtual machine tries to uncompress and use the content of the Jar, it
* complains about an invalid charset format.
*
* <p>For solving this issue, you could launch your Eclipse with the command line option
* <code>-Dfile.encoding=UTF-8</code>, which is forcing the Eclipse product to consider the
* file as encoded with the UTF-8 charset.
*
* @filter(.*)
*/
fact "Error: \"Invalid byte 2 of 4-byte UTF-8 sequence.\"" {
true
}

}

/*
Expand Down
2 changes: 2 additions & 0 deletions releng/io.sarl.lang.updatesite/io.sarl.lang.product
Expand Up @@ -19,6 +19,8 @@
</vmArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
</vmArgsMac>
<vmArgsWin>-Dfile.encoding=UTF-8
</vmArgsWin>
</launcherArgs>

<windowImages i16="/io.sarl.eclipse/icons/sarl_16.png" i32="/io.sarl.eclipse/icons/sarl_32.png" i48="/io.sarl.eclipse/icons/sarl_48.png" i64="/io.sarl.eclipse/icons/sarl_64.png" i128="/io.sarl.eclipse/icons/sarl_128.png" i256="/io.sarl.eclipse/icons/sarl_256.png"/>
Expand Down

0 comments on commit c97b316

Please sign in to comment.