[vdr] [vdr-1.5.5][Patch] inc/dec character not working for ÄÖÜ in non-UTF8
udo_richter at gmx.de
Thu Jun 28 21:34:10 CEST 2007
Found a bug in VDR-1.5.5 in non-UTF8 mode. In any text field, when the
cursor is on an uppercase non-ASCII character like ÄÖÜ, the up/down key
jumps directly to A.
The core problem is that the non-UTF8 version of Utf8ToArray
sign-extends chars to uints, turning the ä of the allowed chars into
0xFFFFFFE4, while the towlower() of the edit control changes the Ä into
0x000000E4, which is then not in the list of allowed characters.
Lowercase works, since here everything stays sign-extended.
The attached patch changes Utf8ToArray to properly extend chars as unsigned.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the vdr