encoding
William Dode
wilk-ml at flibuste.net
Mon Apr 4 11:19:41 BST 2005
Hi,
I found somes problems with encoding :
- accent in commit message
bzr init
touch test
bzr add test
commit -m "test ajouté"
bzr: exception: 'ascii' codec can't decode byte 0xe9 in position 10: ordinal not in range(128)
see .bzr.log for details
Traceback (most recent call last):
File "/vrac/python/bazaar-ng/bzrlib/commands.py", line 890, in main
ret = run_bzr(argv)
File "/vrac/python/bazaar-ng/bzrlib/commands.py", line 822, in run_bzr
args, opts = parse_args(argv[1:])
File "/vrac/python/bazaar-ng/bzrlib/commands.py", line 753, in parse_args
opts[optname] = optargfn(optarg)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 10: ordinal not in range(128)
- accent in files
touch pépé
bzr add pépé
bzr commit -m "add"
bzr: exception: 'ascii' codec can't encode character u'\xe9' in position 28: ordinal not in range(128)
see .bzr.log for details
Traceback (most recent call last):
File "/vrac/python/bazaar-ng/bzrlib/commands.py", line 890, in main
ret = run_bzr(argv)
File "/vrac/python/bazaar-ng/bzrlib/commands.py", line 876, in run_bzr
return cmd_handler(**cmdargs) or 0
File "/vrac/python/bazaar-ng/bzrlib/commands.py", line 519, in cmd_commit
Branch('.').commit(message, verbose=verbose)
File "/vrac/python/bazaar-ng/bzrlib/branch.py", line 431, in commit
mutter('commit prep file %s, id %r ' % (p, file_id))
File "/vrac/python/bazaar-ng/bzrlib/trace.py", line 53, in mutter
_tracefile.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 28: ordinal not in range(128)
Of course if i change the default encoding in site.py (must be root) it
will work, but...
--
William - http://flibuste.net
More information about the bazaar
mailing list