bzr commit throws exceptions.UnicodeEncodeError when --fixes contains cyrillic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned | ||
Breezy |
Fix Released
|
High
|
Jelmer Vernooij |
Bug Description
>bzr ci -m "Commit msg." file.txt --fixes=Message
bzr: ERROR: Invalid bug Message. Must be in the form of 'tracker:id'. See "bzr help bugs" for more information on this feature.
Commit refused.
bzr commit throws an exception if "--fixes" contains text in Russian:
>bzr ci -m "Messege" file.txt --fixes=Сообщение
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "optparse.pyo", line 1387, in parse_args
File "optparse.pyo", line 1427, in _process_args
File "optparse.pyo", line 1502, in _process_long_opt
File "optparse.pyo", line 774, in process
File "optparse.pyo", line 794, in take_action
File "bzrlib\
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)
bzr 2.1.1 on python 2.5.4 (Windows-
arguments: ['bzr', 'commit', '-m', 'Messege', 'file.txt', '--fixes=
encoding: 'cp1251', fsenc: 'mbcs', lang: 'en'
plugins:
bzrtools C:\Program Files\Bazaar\
explorer C:\Program Files\Bazaar\
launchpad C:\Program Files\Bazaar\
netrc_
news_merge C:\Program Files\Bazaar\
qbzr C:\Program Files\Bazaar\
rebase C:\Program Files\Bazaar\
svn C:\Program Files\Bazaar\
upload C:\Program Files\Bazaar\
xmloutput C:\Program Files\Bazaar\
Related branches
- Martin Packman: Approve
-
Diff: 418 lines (+68/-52)9 files modifiedbreezy/bugtracker.py (+1/-1)
breezy/builtins.py (+30/-30)
breezy/cmd_version_info.py (+1/-1)
breezy/commit_signature_commands.py (+1/-1)
breezy/plugins/bash_completion/bashcomp.py (+2/-2)
breezy/plugins/fastimport/cmds.py (+13/-13)
breezy/plugins/grep/cmds.py (+3/-3)
breezy/tests/blackbox/test_commit.py (+14/-1)
doc/en/release-notes/brz-3.0.txt (+3/-0)
tags: | added: unicode |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in brz: | |
status: | Triaged → Fix Released |
Even though using non-ascii characters is incorrect but bzr should not traceback.