UnicodeEncodeError from `bzr send --help` when localisation is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
/var/crash/
COMMAND:
bzr send --help | less
ERROR:
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
self.
File "/usr/lib/
self.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 116-117: ordinal not in range(128)
bzr 2.6b2 on python 2.7.3 (Linux-
Ubuntu-
arguments: ['/usr/bin/bzr', 'send', '--help']
plugins: bash_completion
netrc_
weave_
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'pt_BR.UTF-8'
*** 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:/
including this traceback and a description of the problem.
tags: | added: check-for-breezy |
I can't reproduce this error locally even with:
LANG=pt_BR.UTF-8 bzr send --help
which emits:
bzr: warning: unsupported locale setting
bzr could not set the application locale.
Although this should be no problem for bzr itself, it might
cause problems with some plugins. To investigate the issue,
look at the output of the locale(1p) tool.
because I don't have the pt_BR locale installed.
ERROR:
bzr: ERROR: exceptions. UnicodeEncodeEr ror: 'ascii' codec can't encode characters in position 116-117: ordinal not in range(128)
should indicate that bzr cannot find the right encoding to use and falls back to ascii, so there is probably something weird in your setup that bzr fails to recognize, not sure what though :-/