Unicode Error traceback when supplying non ascii command or option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
John A Meinel |
Bug Description
Reported by Alexander Belchenko: If you try to supply a unicode command name or command line option, bzr aborts with a traceback, rather than a nice error.
Steps to reproduce: just run bzr with a non-existance unicode command:
$ bzr جوجو
Gives this traceback:
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)
bzr 0.10.0dev0 on python 2.4.3.final.0 (linux2)
arguments: ['/home/
** please send this report to <email address hidden>
While we probably won't explicitly support unicode commands or options, we at least can produce a nicer error message than a full traceback.
The associated branch has fixes for this.