rmyorston / busybox-w32

WIN32 native port of BusyBox.
https://frippery.org/busybox
Other
674 stars 124 forks source link

win32: UTF8_INPUT: fix combining of some surrogates pairs #363

Closed avih closed 1 year ago

avih commented 1 year ago

The construction of a codepoint from a surrogates pair was incorrect when the result should have had the 0x10000 bit unset, due to logical "|" instead of arithmetic "+" of 0x10000 (so the 0x10000 bit was set incorrectly when the result should have been U+[1]{0,2,4...C,E}XXXX).

For instance: typing or pasting U+20000 𠀀

rmyorston commented 1 year ago

Applied, thanks.

avih commented 1 year ago

Thanks. Welcome back :)