Bazaar-ng and Unicode dir names problem
John Arbash Meinel
john at arbash-meinel.com
Sat Oct 15 18:38:45 BST 2005
Panagiotis Papadakos wrote:
> Hello everybody and thank you for your nice work in bzr!
>
Thanks.
> I just started using bzr-0.1.1 for my university projects and I have
> come across a problem in my UTF-8 Linux box which seems to be related
> to the fact that the path of my working branch contains Greek characters.
> This is the output of 'bzr add -v thread.h' command:
Try this:
in bzrlib/add.py on line 55 there should be "file_list = ['.']" try
changing that to "file_list = [u'.']".
That should make python try and read things correctly.
If that doesn't work, what is your LANG value?
Try setting it to something like:
export LANG="en_US.UTF-8"
bzr add -v thread.h
(I don't expect your real language is US english, but I don't know the
codes for greek. The important part is the .UTF-8)
In general, it looks like python things your encoding is ASCII, and when
it tries to decode your greek characters, it can't handle it. But I'm
wondering if that is because we forgot to ask for the path as a unicode
string, or if it is because of your system settings.
John
=:->
>
> Traceback (most recent call last):
> File "/usr/lib/python2.4/logging/__init__.py", line 737, in emit
> self.stream.write(fs % msg.encode("UTF-8"))
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 111:
> ordinal not in range(128)
> bzr: ERROR: command: '/usr/bin/bzr' 'add' '-v' 'thread.h'
> pwd: /root/University/Panagiotis/(Greek characters)/
> (Greek characters) 2005/hy527/askiseis/ask1_versioned
> 'ascii' codec can't decode byte 0xce in position 28: ordinal not in
> range(128)
> at /usr/lib/python2.4/posixpath.py line 65, in join()
> see ~/.bzr.log for debug information
>
> Any suggestions?
>
> Regards
> Papadakos Panagiotis
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051015/2c6e668c/attachment.pgp
More information about the bazaar
mailing list