[Rpm-metadata] createrepo/utils.py

Toshio Kuratomi a.badger at gmail.com
Thu Apr 17 02:44:46 UTC 2008


Toshio Kuratomi wrote:
> James Antill wrote:
>>  The big problem here being that a bunch of the "small bytes" like 0x01
>> are valid utf8 but aren't valid XML data. Hence the patches.
>>
>>  After looking again, it's now obvious that we still screw up if we pass
>> a unicode() object in that has 0x01 bytes in it ... so we should
>> probably fix that too (although I'm not sure if that's possible).
>>
I took a second look at the function and realized you were getting rid 
of the control characters rather than replacing them with '?'.  So 
here's an updated patch that just removes the control characters.

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: createrepo-utf8string-fix2.patch
Type: text/x-patch
Size: 2552 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20080416/a65bc38b/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.baseurl.org/pipermail/rpm-metadata/attachments/20080416/a65bc38b/attachment.pgp 


More information about the Rpm-metadata mailing list