[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xgettext misinterprets \x escapes in Python Unicode strings
From: |
Bruno Haible |
Subject: |
Re: xgettext misinterprets \x escapes in Python Unicode strings |
Date: |
Tue, 28 Aug 2007 01:32:36 +0200 |
User-agent: |
KMail/1.5.4 |
Hello,
Jakub Wilk wrote in <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433743>:
> A comment in gettext-tools/src/x-python.c states:
>
> The \ooo and \xnn values are in the current source encoding.
>
> This is false. According to <http://python.org/doc/ref/strings.html>:
>
> In a string literal, hexadecimal and octal escapes denote the byte
> with the given value; it is not necessary that the byte encodes a
> character in the source character set. In a Unicode literal, these
> escapes denote a Unicode character with the given value.
Thanks for pointing this out; the Python specification has apparently become
more precise over time.
> The attached patch fixes this problem.
Thank you very much! Applied. Will be contained in the next gettext release.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: xgettext misinterprets \x escapes in Python Unicode strings,
Bruno Haible <=