mirror of https://github.com/nirenjan/libx52.git
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. |
||
|---|---|---|
| .. | ||
| Makefile.am | ||
| libx52util.h | ||
| libx52util.pc.in | ||
| x52_char_map.cfg | ||
| x52_char_map.h | ||
| x52_char_map_gen.py | ||
| x52_char_map_lookup.c | ||