bug-gettext
[Top][All Lists]
Advanced

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

[bug-gettext] [RFC Patch2] Implement \u support in xgettext for C family


From: Miguel Ángel
Subject: [bug-gettext] [RFC Patch2] Implement \u support in xgettext for C family (C11/C++11)
Date: Mon, 18 Feb 2013 00:41:40 +0100

Hi,

This is a second try for the patch. It breaks format-c-5 test, because
it converts every string to UTF-8. The error is

"""
xgettext: Non-ASCII string at ../tests/format-c-5-prg.c:60.
          Please specify the source encoding through --from-code.
FAIL: format-c-5
""""

because the sixtieth line of gettext-tools/tests/format-c-5-prg.c is

"""
  expected_result = "Vater von \xdb\xb5 Kindern";
"""

that is not a valid ASCII string. With this patch, every string is
translated to UTF-8, so this string abort() xgettext.

Adding --from-code=UTF-8 in the test is a workaround, although I do not
have any actual idea right now about how to solve it. :(

Happy Hacking!
Miguel

Attachment: unicode2.patch
Description: Text Data


reply via email to

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