On Wed, 21 Apr 2021 10:42:04 GMT, Jose Pereda <[email protected]> wrote:
> Both `GlassDialogs.m` for macOS and `GlassCommonDialogs.c` for Linux use UTF8 > encoding for the file names selected via native FileChooser, and this will > fail if there are emojis in the file name. > > This PR uses the same approach as in > [JDK-8258381](https://bugs.openjdk.java.net/browse/JDK-8258381) for macOS, > using UTF16 encoding. > > For Linux, the Java `String(byte[] bytes)` constructor with default charset > is used instead, preventing the need of using UTF8 encoding. This pull request has now been integrated. Changeset: aebac072 Author: Jose Pereda <[email protected]> URL: https://git.openjdk.java.net/jfx/commit/aebac072b1919e68f7732de929dc085d00c62e92 Stats: 15 lines in 2 files changed: 12 ins; 0 del; 3 mod 8210199: [linux / macOS] fileChooser can't handle emojis Reviewed-by: pbansal, kcr ------------- PR: https://git.openjdk.java.net/jfx/pull/471
