[PATCH xinput] use ASCII art when UTF-8 environment is not available

walter harms wharms at bfs.de
Fri Dec 10 01:29:43 PST 2010



Am 10.12.2010 02:11, schrieb Peter Hutterer:
> On Thu, Dec 09, 2010 at 01:30:18PM -0500, James Cloos wrote:
>>>>>>> "PH" == Peter Hutterer <peter.hutterer at who-t.net> writes:
>>
>> PH> urgh, no. I'd rather change the output ASCII only than have if/else
>> PH> conditions for the output.
>>
>> Unfortunate.  Actually using utf8 is better than sticking with ancient
>> ascii, whenever the locale supports it.
> 
> it is unfortunate, but for a tool like xinput having minimal,
> easy-to-maintain code is more important than pretty. I'd prefer to just
> ignore non-UTF8 terminals, but I guess that's still too optimistic for 2010.
> 


UTF8 can have unexpected sideeffects. Using ascii is much more robust.

re,
 wh


More information about the xorg-devel mailing list