UnicodeEncodeError on commit with non-BMP Unicode characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Update: I reported this against bzr-svn, but it's a bzr bug. I've included a smaller, simpler reproduction recipe in a later comment and updated the summary of this bug.
I get the following crash when trying to branch a valid, but generated test SVN repository.
The actual site of the crash is in bzrlib, but I've only been able (so far) to make this happen with generated SVN repositories, not with generated bzr repositories.
$ bzr branch repos bzr-branch
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
source_
File "/home/
return super(SvnRemote
File "/usr/lib/
result_
File "/usr/lib/
find_
File "/home/
self.
File "/home/
parent_revmeta)
File "/home/
report_
File "/home/
reporter.
File "/home/
self._close()
File "/home/
self.
File "/home/
self.inventory, rev.parent_ids)
File "/usr/lib/
inv_lines = self._serialise
File "/usr/lib/
return self._serialize
File "/usr/lib/
return self.write_
File "/usr/lib/
_encode_
File "/usr/lib/
unicode_
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
bzr 1.12dev on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'repos', 'bzr-branch']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /usr/lib/
cvsps_import /usr/lib/
gtk /usr/lib/
launchpad /usr/lib/
loom /usr/lib/
netrc_
rebase /usr/lib/
search /usr/lib/
stats /usr/lib/
svn /home/wjlanda/
upload /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
I've attached the repository. It's generated by a randomized script, so doesn't have any semantic meaning, but it is valid.
Related branches
- John A Meinel: Needs Resubmitting
- Diff: 12 lines
Changed in bzr: | |
status: | Triaged → Confirmed |
bzr itself doesn't accept these filenames either, so it's not related to bzr-svn.
E.g. try adding a file name u'\U0005d062\ U000df631' to bzr.