RFR: 8241192: [macosx] Wrong letter typed after ´ symbol when using Finnish layout

Phil Race prr at openjdk.java.net
Sat Feb 5 18:54:08 UTC 2022


On Fri, 28 Jan 2022 09:38:35 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> If we press " ´ " (on U.S. keyboard layout it is the [+] button just before the [delete] button), and then press "s" , 2 "´" characters are entered in a text field instead of "´s" with "Finish" keyboard layout.
> This is because, although " ´ " is construed as "complex" char and inserted properly the next "s" character is treated as non-complex character as it's utf8Length is 1 and utf16Length is 2, so we need to explicitly make it a "complex" char sequence if the code point is 0x73 ie "s" in Finnish layout for it to be inserted properly.

"This is because, although " ´ " is construed as "complex" char and inserted properly the next "s" character is treated as non-complex character as it's utf8Length is 1 and utf16Length is 2, so we need to explicitly make it a "complex" char sequence if the code point is 0x73 ie "s" in Finnish layout for it to be inserted properly."

I know nothing about this area, so some questions.
" although " ´ " is construed as "complex" char and inserted properly "

Since we had no special treatment of this char, what was treating it as complex  and why ?

Why do we need to make s be a complex char (whatever that actually means here ??) in order to display as s ??
Sounds backwards.

Really I just can't make sense of the explanation. Can you point me to docs as well as re-explaining it ?

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

PR: https://git.openjdk.java.net/jdk/pull/7262



More information about the client-libs-dev mailing list