bug-gnu-utils
[Top][All Lists]
Advanced

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

xgettext and universal character names (\uXXXX and \UXXXXXXXX)


From: Tobias Germer
Subject: xgettext and universal character names (\uXXXX and \UXXXXXXXX)
Date: Fri, 18 Mar 2011 15:06:35 +0100

Hello.

 

While trying to translate our C++ project using xgettext, I found a
problem with escaped unicode characters and universal character names.
Say I want to translate the following:

 

std::cout << "This is a translated string \u00A0 \U000020AC \n";

 

xgettext extracts the following text:

 

msgid "This is a translated string \\u00A0 \\U000020AC \n"

 

So xgettext doesn't seem to recognize \uXXXX or \UXXXXXXXX sequences. It
just escapes the backslashes (as opposed to \n in this example). I think
it should output instead:

 

msgid "This is a translated string \u00A0 \U000020AC \n"

 

Is this a bug or did I get something wrong? If it's a bug is there any
plan or idea how to fix it?

 

 

Best,

Tobias


--
Dr. Tobias Germer | address@hidden
Software Engineer

think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany
http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091

Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306
Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl


reply via email to

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