"bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character" ... when trying to modify a file in an SVN repository with a unicode filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
See the following for how to reproduce this error:
$ svnadmin create repo
$ svn co file://`pwd`/repo svn
Checked out revision 0.
$ bzr co svn+file:
Initialising Subversion metadata cache in /home/wjlanda/
$ cd svn/
$ touch I²C
$ svn add I²C
A I²C
$ svn commit -m "Adding file."
Adding I²C
Transmitting file data .
Committed revision 1.
$ cd ..
$ cd bzr/
$ bzr up
+N I²C
All changes applied successfully.
Updated to revision 2.
$ vi I²C
$ bzr diff
=== modified file 'I²C'
--- I²C 2008-05-13 20:22:41 +0000
+++ I²C 2008-05-13 20:22:56 +0000
@@ -0,0 +1,1 @@
+changes
$ bzr commit -m "Changes."
Committing to: svn+file:
modified I²C
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
author=author)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
result = WorkingTree3.
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
revprops=
File "/usr/lib/
revision_
File "/usr/lib/
return inter.fetch(
File "/home/
self.
File "/home/
push_
File "/home/
builder.
File "/home/
branch_
File "/home/
baton, self.base_revnum, self.pool)
File "/home/
return unbound(*args, **kwargs)
File "/home/
parent_baton, *args, **kwargs)
File "/var/lib/
return apply(_
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb2' in position 2: ordinal not in range(128)
bzr 1.4 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'Changes.']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bisect /home/wjlanda/
bzrtools /usr/lib/
cvsps /home/wjlanda/
gtk /home/wjlanda/
launchpad /usr/lib/
loom /home/wjlanda/
rebase /home/wjlanda/
stats /home/wjlanda/
svn /home/wjlanda/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Related branches
Changed in bzr-svn: | |
importance: | Undecided → Medium |
milestone: | none → 0.4.11 |
assignee: | nobody → jelmer |
Changed in bzr-svn: | |
status: | Fix Committed → Fix Released |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
status fixcommitted enigmail. mozdev. org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iQCVAwUBSCt/ hgy0JeEGD2blAQJ zAwP+OugaYZiL14 ruyJVDNvZTxHHAM KV/bUBQ okBOi29o5Vf4Ezx wGL932i4Js2NjLx qqHACAesEQh+ LHZz9bG 9GNmfVsn8PK/ dEIQGWTnauhwzUc hYUe9BGJ4K/ qAt7RpSOQGIxFVT Ys
oSNZf/5uNdSDFrB
fDgWP1YT+
vomcziUKZpw=
=lK+D
-----END PGP SIGNATURE-----