Skip to content

Commit

Permalink
fix: use correct encoding parameter for javac
Browse files Browse the repository at this point in the history
  • Loading branch information
PokeMMO committed Dec 18, 2023
1 parent 2601113 commit 7d0f6fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private String getNativeClassFileName (FileDescriptor file) {
private void generateHFiles (FileDescriptor file) throws Exception {
//Use temporary directory to prevent javac from creating class files somewhere we care about.
File tempClassFilesDirectory = Files.createTempDirectory("gdx-jnigen").toFile();
String command = "javac -Dfile.encoding=UTF-8 -classpath " + classpath + " -d " + tempClassFilesDirectory.getAbsolutePath() + " -h " + jniDir.path() + " " + file.path();
String command = "javac -encoding UTF-8 -classpath " + classpath + " -d " + tempClassFilesDirectory.getAbsolutePath() + " -h " + jniDir.path() + " " + file.path();
Process process = Runtime.getRuntime().exec(command);
process.waitFor();
if (process.exitValue() != 0) {
Expand Down

0 comments on commit 7d0f6fd

Please sign in to comment.