Crash when repository is in a directory with non ascii characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
This bug may be equivalent or close to #63324 or #84043
When a repository is created within a directory with non ascii characters, it is possible to "bzr init" and "bzr add" but when you "bzr commit", the application crashes with error :
bzr: ERROR: exceptions.
However if you specify the commit comment with the -m option, it works !
The result of "locale" :
LANG=fr_FR.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=
To reproduce it :
~/tmp$ mkdir Thèse
~/tmp$ cd Thèse/
~/tmp/Thèse$ bzr init
~/tmp/Thèse$ touch bar
~/tmp/Thèse$ bzr add .
added bar
~/tmp/Thèse$ bzr commit
Committing revision 1 to "/home/
added bar
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/
message = message_
File "/usr/lib/
my_message = edit_commit_
File "/usr/lib/
msgfilename, hasinfo = _create_
File "/usr/lib/
text=True)
File "tempfile.py", line 302, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File "tempfile.py", line 238, in _mkstemp_inner
return (fd, _os.path.
File "posixpath.py", line 403, in abspath
path = join(os.getcwd(), path)
File "posixpath.py", line 65, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 18: ordinal not in range(128)
bzr 0.92.0 on python 2.4.4.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'commit']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'fr_FR.UTF-8'
plugins:
launchpad /usr/lib/
lessdiff /home/pinot/
multiparent /usr/lib/
** Please send this report to <email address hidden>
with a description of what you were doing when the
error occurred.
~/tmp/Thèse$ bzr commit -m "initial commit"
Committing revision 1 to "/home/
added bar
Committed revision 1.
This is indeed a duplicate of bug #84043