bug-xboard
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-XBoard] [bug #35181] Shortened menunames in tinymode not transl


From: Tim Mann
Subject: Re: [Bug-XBoard] [bug #35181] Shortened menunames in tinymode not translated
Date: Tue, 27 Dec 2011 14:36:54 -0800

> (copying the tranlated item names to a buffer, and zeroing a byte in it based on the board width
> through an emperically derived linear formula that worked for English before sending it to the X-server).

If the item name is in UTF-8, doing that blindly can leave you with an invalid UTF-8 character at the end of the truncated string. In fact you might end up with no valid characters, just one invalid one.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]