RSS/Atom feed Twitter
Site is read-only, email is disabled

error?

This discussion is connected to the gimp-docs-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

error? Marco Ciampa 28 Feb 01:02
  error? Marco Ciampa 28 Feb 23:34
  error? Ulf-D. Ehlert 01 Mar 12:57
   error? Marco Ciampa 01 Mar 13:36
    error? Marco Ciampa 01 Mar 15:30
     error? Ulf-D. Ehlert 01 Mar 20:53
Marco Ciampa
2009-02-28 01:02:32 UTC (over 15 years ago)

error?

Is it important?

touch src/appendix/fdl.xml marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make status-it [DEP] xml/it/.deps.mk
[POT] pot/appendix.pot
Traceback (most recent call last):
File "/usr/bin/xml2po", line 856, in doSerialize(doc)
File "/usr/bin/xml2po", line 589, in doSerialize outtxt += doSerialize(child)
File "/usr/bin/xml2po", line 583, in doSerialize (starttag, content, endtag, translation) = processElementTag(node, repl, 1)
File "/usr/bin/xml2po", line 496, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 525, in processElementTag translation = translation.replace('' % (i), replacement)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 180: ordinal not in range(128)
[PO] po/it/appendix.po

where is the problem?

...

Marco Ciampa
2009-02-28 23:34:40 UTC (over 15 years ago)

error?

On Sat, Feb 28, 2009 at 01:02:32AM +0100, Marco Ciampa wrote:

Is it important?

touch src/appendix/fdl.xml marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make status-it [DEP] xml/it/.deps.mk
[POT] pot/appendix.pot
Traceback (most recent call last):
File "/usr/bin/xml2po", line 856, in doSerialize(doc)
File "/usr/bin/xml2po", line 589, in doSerialize outtxt += doSerialize(child)
File "/usr/bin/xml2po", line 583, in doSerialize (starttag, content, endtag, translation) = processElementTag(node, repl, 1)
File "/usr/bin/xml2po", line 496, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 525, in processElementTag translation = translation.replace('' % (i), replacement)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 180: ordinal not in range(128)
[PO] po/it/appendix.po

where is the problem?

I still see this problem and I see that pot/appendix.pot have size = 0. Any hint on how to focus and fix this problem?

PS: also pot/using/preference.pot have size =0. If this is a problem, perhaps we should add a check to bring it in evidence?

Ulf-D. Ehlert
2009-03-01 12:57:52 UTC (over 15 years ago)

error?

Marco Ciampa (Samstag, 28. Februar 2009, 01:02):

Is it important?

Hmm, yes - a bug in xml2po and/or a bug in the xml source file.

touch src/appendix/fdl.xml
marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make status-it [DEP] xml/it/.deps.mk
[POT] pot/appendix.pot

[...]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 180: ordinal not in range(128)
[PO] po/it/appendix.po

where is the problem?

It looks like something you added to "src/appendix/fdl.xml" can't be handled by xml2po. Can you track down the XML code that causes this error message? Did you try xmllint to make sure it's valid XML?

Ulf

Marco Ciampa
2009-03-01 13:36:15 UTC (over 15 years ago)

error?

On Sun, Mar 01, 2009 at 12:57:52PM +0100, Ulf-D. Ehlert wrote:

Marco Ciampa (Samstag, 28. Februar 2009, 01:02):

Is it important?

Hmm, yes - a bug in xml2po and/or a bug in the xml source file.

touch src/appendix/fdl.xml
marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make status-it [DEP] xml/it/.deps.mk
[POT] pot/appendix.pot

[...]

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 180: ordinal not in range(128)
[PO] po/it/appendix.po

where is the problem?

It looks like something you added to "src/appendix/fdl.xml" can't be handled by xml2po.

ok same conclusion here...

Can you track down the XML code that causes this error message?

This was the very meaning of my help request! How the #$%#% can it be debugged? No offendig line...no file name...xml2po is not so easy to use...

Did you try xmllint to make sure it's valid XML?

make xmlint said it's ok... :-(

As you can see by yourself:

$rm src/appendix/fdl.xml $svn up
Enter passphrase for key '/home/marco/.ssh/id_rsa': Ripristinato 'src/appendix/fdl.xml'
Alla revisione 2769.
marco@ibook:~/svn-gnome/gimp-help-2/trunk$ make status-it [DEP] xml/it/.deps.mk
[POT] pot/appendix.pot
Traceback (most recent call last):
File "/usr/bin/xml2po", line 856, in doSerialize(doc)
File "/usr/bin/xml2po", line 589, in doSerialize outtxt += doSerialize(child)
File "/usr/bin/xml2po", line 583, in doSerialize (starttag, content, endtag, translation) = processElementTag(node, repl, 1)
File "/usr/bin/xml2po", line 496, in processElementTag myrepl.append(processElementTag(child, myrepl, 1)) File "/usr/bin/xml2po", line 525, in processElementTag translation = translation.replace('' % (i), replacement)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 180: ordinal not in range(128)
[PO] po/it/appendix.po

the error is _not_ in src/appendix/fdl.xml since I used the trunk file

I erased the po/it/appendix.po too...same problem.

Maybe the problem is in one of the .po files I've modified locally (since I've not modified any .xml files) but which?

How can I get the list of files processed for the creation of the .pot file?

I think that since xml2po does not produce any meaningful error report, it should be handy to have the list of file processed that produced the error...what do you think about it?

Marco Ciampa
2009-03-01 15:30:16 UTC (over 15 years ago)

error?

On Sun, Mar 01, 2009 at 01:36:15PM +0100, Marco Ciampa wrote:

the error is _not_ in src/appendix/fdl.xml since I used the trunk file

the error _was_ in that file but got unnoticed since make xmllint does not recognize it. Still I'm not shure that it _is_ an error in that file and not an error of xml2po.

Now it is fixed in trunk.

PS: note that if there is an error in the .pot creation, this got unnoticed after the first build process.
You have to manually force the .pot file build process touch-ing one of the .xml files on which the .pot depends on.

Ulf-D. Ehlert
2009-03-01 20:53:22 UTC (over 15 years ago)

error?

Marco Ciampa (Sonntag, 1. März 2009, 15:30):

On Sun, Mar 01, 2009 at 01:36:15PM +0100, Marco Ciampa wrote:

the error is _not_ in src/appendix/fdl.xml since I used the trunk file

the error _was_ in that file but got unnoticed since make xmllint does not recognize it. Still I'm not shure that it _is_ an error in that file and not an error of xml2po.

But it used to work for you, and it worked for everyone else.

I think the most likely reason is a cygwin(?) locale/encoding error, so that the XML file was not UTF-8 encoded. For ASCII chars this doesn't matter, but any non-ASCII char may cause problems.

(Just checked: I added an "EN DASH" (0x2013) and an "EM DASH" (0x2014) and made the pot file without any problems.)

PS: note that if there is an error in the .pot creation, this got unnoticed after the first build process. You have to manually force the .pot file build process touch-ing one of the .xml files on which the .pot depends on.

Yes, I will have to change it so that empty pot files will be removed.

Ulf