Mojibake when showing localised exception messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Triaged
|
High
|
Unassigned |
Bug Description
Under the Windows + bzr 2.5
If we apply i18n to messages used by exceptions, they can't be printed to the console
correctly.
For example:
Without i18n
$ bzr log --author=xxx
bzr: ERROR: Bad value "xxx" for option "authors".
With i18n
$ bzr log --author=xxx
bzr: ERROR: 繧ェ繝励す繝ァ繝ウ "authors" 縺ォ蟇セ縺吶k荳肴ュ」縺ェ蛟、 "xxx"
Is this a problem to be fixed ? Or should we avoid translate messages used by exceptions ?
Output of bzr version:
Bazaar (bzr) 2.5b4
Python interpreter: C:\DEVELOP\
Python standard library: C:\DEVELOP\
Platform: Windows-
bzrlib: C:\DEVELOP\
Bazaar configuration: C:/Users/
Bazaar log file: C:\Users\
Related branches
- bzr-core: Pending requested
-
Diff: 68 lines (+31/-2)2 files modifiedbzrlib/commands.py (+9/-2)
bzrlib/trace.py (+22/-0)
summary: |
- Mojibake in exceptions. + Mojibake when showing localised exception messages |
tags: | added: check-for-breezy |
I believe mgz did some work on this, but I'm not sure about the details. I do think this is an important problem that should be fixed.