Well, almost. When adding setlocale to bzr, it does fix a lot cases, but it looks like it then exposes [an]other problem[s] in bzr-svn. For example:
# before adding setlocale
$ bzr info
bzr: ERROR: libsvn._core.SubversionException: ("Can't convert string from native encoding to 'UTF-8':", 22)
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 807, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1130, in run
verbose=noise_level, outfile=self.outf)
File "/usr/lib/python2.5/site-packages/bzrlib/info.py", line 315, in show_bzrdir_info
recommend_upgrade=False)
File "/home/wjlanda/.bazaar/plugins/svn/workingtree.py", line 743, in open_workingtree
return SvnWorkingTree(self, self.local_path, self.open_branch())
File "/home/wjlanda/.bazaar/plugins/svn/workingtree.py", line 88, in __init__
status = svn.wc.revision_status(self.basedir, None, True, None, None)
File "/var/lib/python-support/python2.5/libsvn/wc.py", line 1577, in svn_wc_revision_status
return apply(_wc.svn_wc_revision_status, args)
SubversionException: ("Can't convert string from native encoding to 'UTF-8':", 22)
bzr 1.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'info']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bisect /home/wjlanda/.bazaar/plugins/bisect [1.1.0pre0]
bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
cvsps /home/wjlanda/.bazaar/plugins/cvsps [unknown]
gtk /home/wjlanda/.bazaar/plugins/gtk [0.95.0dev1]
launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
loom /home/wjlanda/.bazaar/plugins/loom [1.4.0dev0]
rebase /home/wjlanda/.bazaar/plugins/rebase [0.4.0dev0]
stats /home/wjlanda/.bazaar/plugins/stats [unknown]
svn /home/wjlanda/.bazaar/plugins/svn [0.4.11dev0]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
# after adding setlocale
$ bzr info
bzr: ERROR: exceptions.KeyError: 'doc/I\xc2\xb2C'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 846, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 807, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1130, in run
verbose=noise_level, outfile=self.outf)
File "/usr/lib/python2.5/site-packages/bzrlib/info.py", line 315, in show_bzrdir_info
recommend_upgrade=False)
File "/home/wjlanda/.bazaar/plugins/svn/workingtree.py", line 743, in open_workingtree
return SvnWorkingTree(self, self.local_path, self.open_branch())
File "/home/wjlanda/.bazaar/plugins/svn/workingtree.py", line 90, in __init__
self.base_tree = SvnBasisTree(self)
File "/home/wjlanda/.bazaar/plugins/svn/tree.py", line 276, in __init__
workingtree.branch.mapping)
File "/home/wjlanda/.bazaar/plugins/svn/repository.py", line 289, in get_fileid_map
return self.fileid_map.get_map(self.uuid, revnum, path, mapping)
File "/home/wjlanda/.bazaar/plugins/svn/fileids.py", line 236, in get_map
map = self.load(revid)
File "/home/wjlanda/.bazaar/plugins/svn/fileids.py", line 214, in load
assert isinstance(map[urllib.unquote(filename)][0], str)
KeyError: 'doc/I\xc2\xb2C'
bzr 1.5 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'info']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bisect /home/wjlanda/.bazaar/plugins/bisect [1.1.0pre0]
bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.5.0]
cvsps /home/wjlanda/.bazaar/plugins/cvsps [unknown]
gtk /home/wjlanda/.bazaar/plugins/gtk [0.95.0dev1]
launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
loom /home/wjlanda/.bazaar/plugins/loom [1.4.0dev0]
rebase /home/wjlanda/.bazaar/plugins/rebase [0.4.0dev0]
stats /home/wjlanda/.bazaar/plugins/stats [unknown]
svn /home/wjlanda/.bazaar/plugins/svn [0.4.11dev0]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
But anyway, it does fix a lot of other cases, and in general seems like a step in the right direction.
Well, almost. When adding setlocale to bzr, it does fix a lot cases, but it looks like it then exposes [an]other problem[s] in bzr-svn. For example:
# before adding setlocale _core.Subversio nException: ("Can't convert string from native encoding to 'UTF-8':", 22)
$ bzr info
bzr: ERROR: libsvn.
Traceback (most recent call last): python2. 5/site- packages/ bzrlib/ commands. py", line 846, in run_bzr_ catch_errors python2. 5/site- packages/ bzrlib/ commands. py", line 797, in run_bzr python2. 5/site- packages/ bzrlib/ commands. py", line 499, in run_argv_aliases **all_cmd_ args) python2. 5/site- packages/ bzrlib/ commands. py", line 807, in ignore_pipe python2. 5/site- packages/ bzrlib/ builtins. py", line 1130, in run noise_level, outfile=self.outf) python2. 5/site- packages/ bzrlib/ info.py" , line 315, in show_bzrdir_info upgrade= False) wjlanda/ .bazaar/ plugins/ svn/workingtree .py", line 743, in open_workingtree self, self.local_path, self.open_branch()) wjlanda/ .bazaar/ plugins/ svn/workingtree .py", line 88, in __init__ revision_ status( self.basedir, None, True, None, None) python- support/ python2. 5/libsvn/ wc.py", line 1577, in svn_wc_ revision_ status wc.svn_ wc_revision_ status, args) tion: ("Can't convert string from native encoding to 'UTF-8':", 22)
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
verbose=
File "/usr/lib/
recommend_
File "/home/
return SvnWorkingTree(
File "/home/
status = svn.wc.
File "/var/lib/
return apply(_
SubversionExcep
bzr 1.5 on python 2.5.2 (linux2) .bazaar/ plugins/ bisect [1.1.0pre0] python2. 5/site- packages/ bzrlib/ plugins/ bzrtools [1.5.0] .bazaar/ plugins/ cvsps [unknown] .bazaar/ plugins/ gtk [0.95.0dev1] python2. 5/site- packages/ bzrlib/ plugins/ launchpad [unknown] .bazaar/ plugins/ loom [1.4.0dev0] .bazaar/ plugins/ rebase [0.4.0dev0] .bazaar/ plugins/ stats [unknown] .bazaar/ plugins/ svn [0.4.11dev0] /bugs.launchpad .net/bzr/ +filebug
arguments: ['/usr/bin/bzr', 'info']
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.
# after adding setlocale KeyError: 'doc/I\xc2\xb2C'
$ bzr info
bzr: ERROR: exceptions.
Traceback (most recent call last): python2. 5/site- packages/ bzrlib/ commands. py", line 846, in run_bzr_ catch_errors python2. 5/site- packages/ bzrlib/ commands. py", line 797, in run_bzr python2. 5/site- packages/ bzrlib/ commands. py", line 499, in run_argv_aliases **all_cmd_ args) python2. 5/site- packages/ bzrlib/ commands. py", line 807, in ignore_pipe python2. 5/site- packages/ bzrlib/ builtins. py", line 1130, in run noise_level, outfile=self.outf) python2. 5/site- packages/ bzrlib/ info.py" , line 315, in show_bzrdir_info upgrade= False) wjlanda/ .bazaar/ plugins/ svn/workingtree .py", line 743, in open_workingtree self, self.local_path, self.open_branch()) wjlanda/ .bazaar/ plugins/ svn/workingtree .py", line 90, in __init__ wjlanda/ .bazaar/ plugins/ svn/tree. py", line 276, in __init__ .branch. mapping) wjlanda/ .bazaar/ plugins/ svn/repository. py", line 289, in get_fileid_map map.get_ map(self. uuid, revnum, path, mapping) wjlanda/ .bazaar/ plugins/ svn/fileids. py", line 236, in get_map wjlanda/ .bazaar/ plugins/ svn/fileids. py", line 214, in load map[urllib. unquote( filename) ][0], str)
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
verbose=
File "/usr/lib/
recommend_
File "/home/
return SvnWorkingTree(
File "/home/
self.base_tree = SvnBasisTree(self)
File "/home/
workingtree
File "/home/
return self.fileid_
File "/home/
map = self.load(revid)
File "/home/
assert isinstance(
KeyError: 'doc/I\xc2\xb2C'
bzr 1.5 on python 2.5.2 (linux2) .bazaar/ plugins/ bisect [1.1.0pre0] python2. 5/site- packages/ bzrlib/ plugins/ bzrtools [1.5.0] .bazaar/ plugins/ cvsps [unknown] .bazaar/ plugins/ gtk [0.95.0dev1] python2. 5/site- packages/ bzrlib/ plugins/ launchpad [unknown] .bazaar/ plugins/ loom [1.4.0dev0] .bazaar/ plugins/ rebase [0.4.0dev0] .bazaar/ plugins/ stats [unknown] .bazaar/ plugins/ svn [0.4.11dev0] /bugs.launchpad .net/bzr/ +filebug
arguments: ['/usr/bin/bzr', 'info']
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.
But anyway, it does fix a lot of other cases, and in general seems like a step in the right direction.