RFR: 8278232: [macos] Wrong chars emitted when entering certain char-sequence of Indic language
Phil Race
prr at openjdk.java.net
Thu Jan 20 19:34:50 UTC 2022
On Thu, 6 Jan 2022 11:03:26 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Devanagiri script was not rendered properly in macos after JDK-8068283 due to incorporated check of utf16 string encoding should be more than 2 bytes is not satisfied.
> Additional check added in JDK-8132503 to ascertain if utf8 string encoding is complex or not was also not satisfied because of which complex Devanagairi unicode text insertion was not working.
> Fix is to add Devanagiri codePoint to the complex list so that it is rendered properly.
Marked as reviewed by prr (Reviewer).
src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m line 962:
> 960: NSLog(@"insertText kbdlayout %@ ",(NSString *)kbdLayout);
> 961:
> 962: NSLog(@"utf8Length %lu utf16Lenght %lu", (unsigned long)utf8Length, (unsigned long)utf16Length);
utf16Lenght -> utf16Length
-------------
PR: https://git.openjdk.java.net/jdk/pull/6979
More information about the client-libs-dev
mailing list