Re: Problems with gnome-po-locations
- From: Simos Xenitellis <simos74 gmx net>
- To: Ilkka Tuohela <hile nixu com>
- Cc: gnome-i18n gnome org
- Subject: Re: Problems with gnome-po-locations
- Date: Sat, 31 Dec 2005 05:41:31 +0000
Ilkka Tuohela wrote:
Seems that gweather/Locations.xml.in contains now some invalid
characters, or am I doing something wrong?
Running intltool-update, I get 8 messages:
Wide character in print at /usr/bin/intltool-extract line 810.
After this, my UTF-8 file is no more UTF-8 and strings are garbled,
fi.po: Non-ISO extended-ASCII English text
Is there a problem with my intltool version (0.34.1-1) or do we just
have invalid input data?
It is a problem with intltool which has been fixed by
http://bugzilla.gnome.org/show_bug.cgi?id=320721
It is possible your intltool package does not contain the fix. See if
/usr/bin/intltool-extract
has this simple change
http://cvs.gnome.org/viewcvs/intltool/intltool-extract.in.in?r1=1.69&r2=1.70
The problem is caused by the parsing of the XML comments of intltool;
normally inttool does not do any processing wrt text encodings,
with the exception of comments in XML files where text is converted to
the default Perl encoding of the script: iso-8859-1.
Due to this, the following languages currently have invalid UTF8 PO
files for gnome-applets/po-locations/
1. cs
2. en_CA
3. it
4. ja
5. nl
6. sr
7. fr
When you try to edit an invalid UTF-8 file, your text editor typically
regards it as iso-8859-1. So if you save it, some characters get corrupted.
One way to verify if your PO file is valid UTF-8 is to
% iconv -f utf-8 -t utf-8 < el.po
You will see the content of the file appear on screen. If there is a
problem, the command will break with an error. As you see the file
contents, you can easily pinpoint the error.
These files appear not to have any content corrupted (like translated
messages), so using the "iconv" test you can erase those problematic
comments in order to fix.
At least the Ukrainian file appears to have some corrupted entries,
http://cvs.gnome.org/viewcvs/gnome-applets/po-locations/uk.po?view=markup
See the end of the above page for some examples.
Simos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]