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

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

xgettext incorrect reports non-ascii characters


From: Morten Welinder
Subject: xgettext incorrect reports non-ascii characters
Date: 20 Nov 2002 20:10:38 -0000

1. xgettext report non-ASCII characters where none are used, see below.
   (The string uses four plain ASCII characters: backslash, x, e, and f.
   That is different from using one non-ASCII character.)

2. xgettext has no options for turning that warning off.  ASCII is not
   the only sane base encoding to use -- another is UTF-8.  It might
   be that some translators will have trouble, but that cannot be
   helped.

Note: I can ignore the warning just fine, but it's going to upset
translators for no good reason.

Morten



troll:~> echo '_("\xef")' > xxx.c

troll:~> xgettext --keyword=_ xxx.c 
xgettext: 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.
                   ï
xgettext: invalid multibyte sequence
xgettext: invalid multibyte sequence

troll:~> xgettext --version
xgettext (GNU gettext) 0.11
Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.




reply via email to

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