Re: error?

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

 



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 <module>
    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('<placeholder-%d/>' % (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

+--------------------+
| Linux User  #78271 |
| FSFE fellow   #364 |
+--------------------+
_______________________________________________
Gimp-docs mailing list
Gimp-docs@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-docs

[Index of Archives]     [Video For Linux]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [Scanners]     [GEGL]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux