-Dfile.encoding=UTF-16BE crashes JavaFX

2019-09-02 04:14发布

问题:

When I use the JVM flag -Dfile.encoding=UTF-16BE to launch a JavaFX application libfreetype.so.6 catches a SIGSEGV. It only happens in JavaFX applications and if I don't use the flag the application launches fine and I can use UTF-16BE to write files without problem by specifying the charset in my code. This is my crash log https://drive.google.com/open?id=0BzW0t4K6XI4gdHhWa0M2YWNtUTQ