Do not interpret nor emit invalid Unicode encoding forms
authorPierre Le Marre <dev@wismill.eu>
Sat, 13 May 2023 15:26:24 +0000 (17:26 +0200)
committerRan Benita <ran@unusedvar.com>
Sat, 13 May 2023 19:02:46 +0000 (22:02 +0300)
commit183761ac24544b355aaf362e62d05fa1c184baf8
tree0fb328d8876d92997fca57acfbb4a76dc6ae7d58
parent5fbffaf035f0c0edbcf7b2e747ccab9a234101ff
Do not interpret nor emit invalid Unicode encoding forms

Surrogates are invalid in both UTF-32 and UTF-8.
See https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf#G28875
and https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf#G31703
src/keysym-utf.c
src/utf8.c
test/keysym.c
test/utf8.c