Package: gettext
Version: 0.18.1.1-1
Severity: minor

Using this "extract" from /usr/share/xml/iso-codes/iso_3166.xml

# -*- coding: utf-8 -*-
name=_("Åland Islands")
name=_("Côte d'Ivoire")

and the command line

$ xgettext --language=Python --omit-header --output=/dev/null utf8.py

leads to the following warnings:

utf8.py:2: warning: The following msgid contains non-ASCII characters.
This will cause problems to translators who use a character encoding different from yours. Consider using a pure ASCII msgid instead.
                    Åland Islands
utf8.py:2: invalid multibyte sequence
utf8.py:2: invalid multibyte sequence
utf8.py:2: invalid multibyte sequence
utf8.py:2: invalid multibyte sequence
utf8.py:3: warning: The following msgid contains non-ASCII characters.
This will cause problems to translators who use a character encoding different from yours. Consider using a pure ASCII msgid instead.
                    Côte d'Ivoire
utf8.py:3: invalid multibyte sequence
utf8.py:3: invalid multibyte sequence
utf8.py:3: invalid multibyte sequence
utf8.py:3: invalid multibyte sequence

Because UTF-8 is the default and recommended encoding in
Debian (and, as far as I know, in PO files), it would be
nice to accept it without warning.

Btw. there is a similar bug report at
http://code.djangoproject.com/ticket/4734




--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to