diff options
author | Simon McVittie <smcv@debian.org> | 2022-01-04 19:47:42 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2022-01-04 19:52:12 +0000 |
commit | 18235a64c08b6dac3be5d368f3baaee285cabc3d (patch) | |
tree | 05993b71839a83fb8700e318a5af5fb7ebc98165 /pango/pango-utils-internal.h | |
parent | 05699b666d1138bd8268fd708e3047b4c4a26b65 (diff) | |
download | pango-18235a64c08b6dac3be5d368f3baaee285cabc3d.tar.gz |
serializer: Serialize non-ASCII correctly if char is unsigned
If char is unsigned, the first byte of a non-trivial UTF-8 sequence will
be 0x80 or higher, instead of being negative. In this case we need to
process it as UTF-8, instead of printing only the first byte and then
skipping to the next UTF-8 character.
char is usually signed on x86 and some other architectures, but not on
the ARM or PowerPC families, among others.
Resolves: https://gitlab.gnome.org/GNOME/pango/-/issues/652
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'pango/pango-utils-internal.h')
0 files changed, 0 insertions, 0 deletions