[PATCH] encoding fix

Olaf Conradi olaf at conradi.org
Fri Mar 24 12:54:55 GMT 2006


Hi,

Yesterday a user was on irc and bzr threw an exception:

< bartt > bzr: ERROR: exceptions.TypeError: encode() argument 1 must
be string, not None
< bartt >   at /srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/bzrlib/osutils.py
line 191
< bartt >   in abspath

sys.getfilesystemencoding() returns None if no encoding is detected.
needs a check and default to ascii

Cheers
 -Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: encoding_fix.patch
Type: text/x-patch
Size: 383 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060324/c088f758/attachment.bin 


More information about the bazaar mailing list