2012/7/12 Yann Rouillard <[email protected]>: > Hi, > > I am still running into a checkpkg unicode problem while building gnomevfs2: > > Traceback (most recent call last):######## > | > File "/home/yann/opencsw/.buildsys/v2/gar//bin/checkpkg", line 197, in > <module> > main() > File "/home/yann/opencsw/.buildsys/v2/gar//bin/checkpkg", line 158, in > main > exit_code, screen_report, tags_report = check_manager.Run() > File "/home/yann/opencsw/.buildsys/v2/lib/python/checkpkg_lib.py", line > 827, in Run > return super(CheckpkgManager2, self).Run() > File "/home/yann/opencsw/.buildsys/v2/lib/python/checkpkg_lib.py", line > 250, in Run > tag_info=unicode(tag_info, "utf-8") > TypeError: decoding Unicode is not supported > > > It seems tag_info can also already be unicode. > > When I use checkpkg on gnomevfs, it fails when processing the following > error: > CheckpkgTag('CSWgnomevfs2', 'missing-dependency', u'CSWlibsmbclient0') > > u'CSWlibsmbclient0' is already unicode, hence the error. > > I commited a quick fix to be able to continue to work and to potentially > unblock other maintainers: > http://sourceforge.net/apps/trac/gar/changeset/18716/csw/mgar/gar/v2/lib/python
Thanks for the fix! > Maciej could you have a look to tell if there is a better way to fix this ? > Should all tag_info be str instead of unicode ? I'm not aware of a better way. Fields in the database are stored in unicode, so if yo u pass it a str, it'll try to decode it using the ascii codec, and will fail if there are any extended characters. Maciej _______________________________________________ maintainers mailing list [email protected] https://lists.opencsw.org/mailman/listinfo/maintainers .:: This mailing list's archive is public. ::.
