[vlc-devel] [PATCH] Deinterlacer: X²

Andre-John Mas ajmas at sympatico.ca
Wed May 4 14:58:35 CEST 2011

On 4-May-2011, at 06:23, Juha Jeronen wrote:

> Hi,
> On 05/04/2011 10:21 AM, Rémi Denis-Courmont wrote:
>>   Hello,
>> On Tuesday 03 May 2011, Juha Jeronen wrote:
>>> Filter renamed to X² as discussed. Updated patch attached.
>> AFAIK, gettext does not allow non-ASCII characters in input strings.
> It's not localized (just like "X" isn't either), so this particular
> issue should not arise.
> But I agree that having non-ASCII characters in the source files is not
> ideal. It's extended ASCII #253, but in practice "echo ² | hexdump -C"
> gives me 0xc2 (in UTF-8). Because the symbol has different codepoints in
> different charsets, this may cause it to render incorrectly at some point.
> Any suggestions? Make it N_("X2") in the code, and put an xgettext note
> to the translators saying that please render this as "X²"?

Anything outside of the ASCII range should be escaped. I haven't had any
needs to do unicode directly in C code recently, but I believe you can use
an escaped code: \uXXXX , though this may be dependent on the compiler
or OS.


More information about the vlc-devel mailing list