Bug#574029: jh_manifest utf8 errors

Picca Frédéric-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.Fr
Tue Apr 27 07:57:37 UTC 2010


Le Sun, 18 Apr 2010 18:14:05 +0100,
Matthew Johnson <mjj29 at debian.org> a écrit :

> I really could do with seeing the manifest from either of your packages - I
> suspect that there is non-utf8 data in there. Without seeing it though I can't
> reproduce or suggest a fix. (I'm afraid I can't read winmail.dat)
> 
> Matt
> 

Hello

sorry for such a late answer.

Attached the faulty manifest file, the one from ATKWidget-4.0.6.jar.

it seems that this MANIFEST is not in unix format.

picca at grisette:/tmp$ file MANIFEST.MF 
MANIFEST.MF: ASCII text, with CRLF line terminators

the error is still:

picca at grisette:~/Debian/tango/tango-nonfree$ jh_manifest -v
/usr/bin/jh_manifest:3: DeprecationWarning: please use 'debian' instead of 'debian_bundle'
  import sys,getopt,debian_bundle.deb822,scriptutil,os,tempfile,copy
Updating manifest in /home/picca/Debian/tango/tango-nonfree/debian/libtango-java/usr/share/java/Astor-5.2.3.jar
Updating manifest in /home/picca/Debian/tango/tango-nonfree/debian/libtango-java/usr/share/java/ATKCore-4.0.6.jar
Updating manifest in /home/picca/Debian/tango/tango-nonfree/debian/libtango-java/usr/share/java/atkpanel-4.2.jar
Updating manifest in /home/picca/Debian/tango/tango-nonfree/debian/libtango-java/usr/share/java/AtkTuning-2.8.jar
Updating manifest in /home/picca/Debian/tango/tango-nonfree/debian/libtango-java/usr/share/java/ATKWidget-4.0.6.jar
Traceback (most recent call last):
  File "/usr/bin/jh_manifest", line 264, in <module>
    updatejar(j, tempmanifest, args)
  File "/usr/bin/jh_manifest", line 78, in updatejar
    manifest = parseManifest(tempdir + "/META-INF/MANIFEST.MF", None, manifest)
  File "/usr/bin/jh_manifest", line 164, in parseManifest
    manifest[section][i.strip()] = sec[i].strip().replace('\n ','')
  File "/usr/lib/pymodules/python2.5/debian/deb822.py", line 179, in __getitem__
    value = value.decode(self.encoding)
  File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 5: unexpected end of data


thanks.

Frederic

-- 
GPG public key   1024D/A59B1171 2009-08-11
    fingerprint = 1688 A3D6 F0BD E4DF 2E6B  06AA B6A9 BA6A A59B 1171
uid  Picca Frédéric-Emmanuel <picca at synchrotron-soleil.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MANIFEST.MF
Type: application/octet-stream
Size: 3550 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100427/a46953d6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20100427/a46953d6/attachment.pgp>


More information about the pkg-java-maintainers mailing list