RFR: JDK-8258381 : [macos] Exception when input emoji using Chinese input method

Hsiafan github.com+1498664+hsiafan at openjdk.java.net
Tue Mar 23 20:54:53 UTC 2021


The convertNSStringToJString function convert NSString to Java String using NewStringUTF,NewStringUTF accept modified-UTF8 encoded str。This fix using UTF-16 encoding for converting.

-------------

Commit messages:
 - fix input UTF-16 surrogate-pairs in macOS

Changes: https://git.openjdk.java.net/jfx/pull/436/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jfx&pr=436&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8258381
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jfx/pull/436.diff
  Fetch: git fetch https://git.openjdk.java.net/jfx pull/436/head:pull/436

PR: https://git.openjdk.java.net/jfx/pull/436


More information about the openjfx-dev mailing list