UnicodeEncodeError on unrepresentable filename in cmd_ls.run

Bug #408442 reported by Anbreizh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Low
Unassigned

Bug Description

I use Bazaar with redmine, and when i try to open subfolder, i have an error.
The Traceback

bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 73: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 835, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1030, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 647, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 1045, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2526, in run
    self.outf.write(outstring + '\n')
  File "/usr/lib/python2.5/codecs.py", line 303, in write
    data, consumed = self.encode(object, self.errors)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 73: ordinal not in range(128)

bzr 1.17 on python 2.5.3 (linux2)
arguments: ['/usr/bin/bzr', 'ls', '-v', '--show-ids', 'http://www.jbtheou.fr/bzr/mpsi-math/Mathematique']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.17]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [1.17]
  netrc_credential_store /usr/lib/python2.5/site-packages/bzrlib/plugins/netrc_credential_store [1.17]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Tags: unicode
Revision history for this message
Martin Pool (mbp) wrote :

Your locale is set to C and we can't represent that filename in ascii. We should give a better error for this. But to get it working, you should be able to set LANG=fr_FR@UTF-8 or similar.

summary: - Error on open folder in redmine
+ UnicodeEncodeError on unrepresentable filename in cmd_ls.run
Changed in bzr:
status: New → Confirmed
importance: Undecided → Low
tags: added: unicode
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.