Skip to content

Commit 7a955fd

Browse files
author
Jonathan Feinberg
committed
Fix a bug that makes Processing fail during startup when the user's home
directory has non-ASCII characters.
1 parent 392c12e commit 7a955fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/processing/app/Platform.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ static public File getContentFile(String name) {
311311
System.err.println("Could not find lib folder via " +
312312
jarFolder.getAbsolutePath() +
313313
", switching to user.dir");
314-
processingRoot = new File(System.getProperty("user.dir"));
314+
final String userDir = System.getProperty("user.dir");
315+
processingRoot = new File(PApplet.urlDecode(userDir));
315316
}
316317
}
317318
}

0 commit comments

Comments
 (0)