libx52/libx52util
nirenjan ef4cbee127 fix: Handle malformed UTF-8 input in libx52util
The libx52util_convert_utf8_string function manually converts the UTF-8
string into the character map supported by the X52/X52Pro MFD. However,
there was a bug when handling malformed UTF-8 input. If the state
machine thinks it is at the start of a word and receives malformed UTF-8
input (between 0x80 and 0xC0), it will ignore the characters, but it
will not reset the entry to the map_root location, thereby causing
subsequent characters to be dropped.

This change ensures that the entry is reset to map_root[*input] after
skipping over an invalid UTF-8 sequence.
2026-03-08 20:25:29 -07:00
..
Makefile.am Fix Makefile to build on alternative make implementations 2021-10-12 12:10:36 -07:00
libx52util.h Move libx52util to top level 2021-07-29 21:47:07 -07:00
libx52util.pc.in Fix Cflags and add libx52util.pc 2021-08-03 12:53:26 -07:00
x52_char_map.cfg Move libx52util to top level 2021-07-29 21:47:07 -07:00
x52_char_map.h Move libx52util to top level 2021-07-29 21:47:07 -07:00
x52_char_map_gen.py Move libx52util to top level 2021-07-29 21:47:07 -07:00
x52_char_map_lookup.c fix: Handle malformed UTF-8 input in libx52util 2026-03-08 20:25:29 -07:00