This can be triggered even without |more, just try to run this command on the branch with non-ascii committer names in the shell where unicode is not supported. Here is example for qbzr repo running in std russian windows shell:
C:\work\Bazaar\plugins\qbzr>bzr branch-history
bzr: ERROR: exceptions.UnicodeEncodeError: 'charmap' codec can't encode characters in position 3-4: character maps t
o <undefined>
Traceback (most recent call last):
File "bzrlib\commands.pyo", line 842, in exception_to_return_code
File "bzrlib\commands.pyo", line 1037, in run_bzr
File "C:/Program Files/Bazaar/plugins\bzrtools\command.py", line 13, in run_argv_aliases
File "bzrlib\commands.pyo", line 654, in run_argv_aliases
File "C:/Program Files/Bazaar/plugins\bzrtools\command_classes.py", line 361, in run
File "C:/Program Files/Bazaar/plugins\bzrtools\branchhistory.py", line 20, in branch_history
File "C:/Program Files/Bazaar/plugins\bzrtools\branchhistory.py", line 61, in print_info
File "encodings\cp866.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 3-4: character maps to <undefined>
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at https://bugs.launchpad.net/bzr/+filebug
including this traceback and a description of the problem.
This can be triggered even without |more, just try to run this command on the branch with non-ascii committer names in the shell where unicode is not supported. Here is example for qbzr repo running in std russian windows shell:
C:\work\ Bazaar\ plugins\ qbzr>bzr branch-history UnicodeEncodeEr ror: 'charmap' codec can't encode characters in position 3-4: character maps t
bzr: ERROR: exceptions.
o <undefined>
Traceback (most recent call last): commands. pyo", line 842, in exception_ to_return_ code commands. pyo", line 1037, in run_bzr plugins\ bzrtools\ command. py", line 13, in run_argv_aliases commands. pyo", line 654, in run_argv_aliases plugins\ bzrtools\ command_ classes. py", line 361, in run plugins\ bzrtools\ branchhistory. py", line 20, in branch_history plugins\ bzrtools\ branchhistory. py", line 61, in print_info cp866.pyo" , line 12, in encode
File "bzrlib\
File "bzrlib\
File "C:/Program Files/Bazaar/
File "bzrlib\
File "C:/Program Files/Bazaar/
File "C:/Program Files/Bazaar/
File "C:/Program Files/Bazaar/
File "encodings\
UnicodeEncodeError: 'charmap' codec can't encode characters in position 3-4: character maps to <undefined>
bzr 2.0.2 on python 2.5.4 (Windows- XP-5.1. 2600-SP3) Bazaar\ \bzr.EXE' , 'branch-history'] Bazaar\ plugins\ acad [0.8.0] plugins\ bzrtools [2.0.1] Bazaar\ plugins\ explorer [0.10.0dev] Bazaar\ plugins\ fastimport [0.9.0dev] Bazaar\ plugins\ format1 [unknown] plugins\ launchpad [2.0.2] Bazaar\ plugins\ qbzr [0.17.0dev] Bazaar\ plugins\ rebase [0.5.4] Bazaar\ plugins\ repoalias [unknown] Bazaar\ plugins\ scmproj [0.5.0dev] Bazaar\ plugins\ svn [1.0.2dev] Bazaar\ plugins\ x_bit [1.0.0]
arguments: ['C:\\Program Files\\
encoding: 'cp1251', fsenc: 'mbcs', lang: 'ru'
plugins:
acad C:\work\
bzrtools C:\Program Files\Bazaar\
explorer C:\work\
fastimport C:\work\
format1 C:\work\
launchpad C:\Program Files\Bazaar\
qbzr C:\work\
rebase C:\work\
repoalias C:\work\
scmproj C:\work\
svn C:\work\
x_bit C:\work\
*** Bazaar has encountered an internal error. This probably indicates a /bugs.launchpad .net/bzr/ +filebug
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
Using print for unicode data is very bad idea.