`bzr --version` should care about encoding of stdout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Alexander Belchenko |
Bug Description
Windows users, who use localized version, often have My Document folder name translated to their languages. Because bzr use My Documents folder to place there .bzr.log, so sometimes abspath to .bzr.log may contains non-ascii characters. Therefore command
C:> bzr --version | less
Is fails with UnicodeEncodeError.
E:\Bazaar\
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "E:\Bazaar\
return run_bzr(argv)
File "E:\Bazaar\
show_version()
File "E:\Bazaar\
print " Bazaar log file:", trace._
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-5: ordinal not in range(128)
bzr 0.19.0dev0 on python 2.4.4.final.0 (win32)
arguments: ['bzr', '--version']
Function show_versoin should take care about encoding of stdout. Currently it just print data. It's unicode unsafe.
Changed in bzr: | |
status: | New → Confirmed |
Changed in bzr: | |
assignee: | nobody → bialix |
status: | Confirmed → In Progress |
This does not give a good first impression