ERROR: exceptions.UnicodeEncodeError
John Arbash Meinel
john at arbash-meinel.com
Fri Aug 18 15:20:36 BST 2006
Lautaro bonetto wrote:
> C:\Documents and Settings\Lautaro\pruebabazaar>bzr export C:\OpenSSL\123
> --format tar
> bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode
> character u'\xf3' in position 28: ordinal not in range(128)
>
Thanks for the bug report.
Nothing to do with the bug, but normally you would do an export like
this by doing:
bzr export C:\OpenSSL\123.tar
(or tar.gz, or tar.bz2, etc)
You don't need the --format tar flag.
Anyway, it looks like you have a unicode filename in your source. Is
that correct?
Probably we just need to encode the filenames into utf-8. As I assume
that would be the best way to store them in a tar file.
Out of curiousity can you do:
bzr export C:\OpenSSL\test_directory\
And then do:
cd C:\OpenSSL
tar cxf test.tar test_directory
I'm curious if 'tar' itself will handle unicode filenames. (My first
guess is that it will add the file with '?' in the name, though it may
depend on your locale, and all that jazz)
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060818/5fb8536f/attachment.pgp
More information about the bazaar
mailing list