Imports non-UTF-8 characters
Bug #54736 reported by
Jelmer Vernooij
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Low
|
Jelmer Vernooij |
Bug Description
Subversion requires its metadata to be in UTF-8, but this isn't enforced. Bazaar will complain, so bzr-svn needs to filter out non-UTF8 characters from Subversion metadata (log message, author name, filenames).
Related branches
lp:~jelmer/bzr-svn/utf8
(Merged)
Changed in bzr-svn: | |
assignee: | nobody → jelmer |
status: | Unconfirmed → Confirmed |
Changed in bzr-svn: | |
importance: | Undecided → High |
Changed in bzr-svn: | |
status: | Confirmed → Fix Committed |
Changed in bzr-svn: | |
status: | Fix Committed → Fix Released |
Changed in bzr-svn: | |
importance: | High → Low |
Changed in bzr-svn: | |
status: | Unconfirmed → Fix Committed |
Changed in bzr-svn: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think this is not completely fixed.
I'm trying to convert an old SVN tree I have around and I get an error while excuting:
bzr svn-import --shared --all --scheme=none http:// svn-repository
...
svn update -r 42 '' 42@87d805a7- 88b8-0310- b97b-b177727583 98-} python2. 5/site- packages/ bzrlib/ commands. py", line 650, in run_bzr_ catch_errors python2. 5/site- packages/ bzrlib/ commands. py", line 612, in run_bzr python2. 5/site- packages/ bzrlib/ commands. py", line 304, in run_argv_aliases **all_cmd_ args) python2. 5/site- packages/ bzrlib/ commands. py", line 622, in ignore_pipe python2. 5/site- packages/ bzrlib/ plugins/ svn/__init_ _.py", line 153, in run python2. 5/site- packages/ bzrlib/ plugins/ svn/convert. py", line 113, in convert_repository repos.copy_ content_ into(target_ repos) python2. 5/site- packages/ bzrlib/ repository. py", line 268, in copy_content_into .get(self, destination) .copy_content( revision_ id, basis) python2. 5/site- packages/ bzrlib/ plugins/ svn/fetch. py", line 402, in copy_content ra.reporter2_ invoke_ finish_ report( reporter, reporter_baton, pool) python- support/ python2. 5/libsvn/ ra.py", line 745, in svn_ra_ reporter2_ invoke_ finish_ report ra.svn_ ra_reporter2_ invoke_ finish_ report, args) python2. 5/site- packages/ bzrlib/ plugins/ svn/fetch. py", line 117, in add_directory new_id( parent_ id, path) python2. 5/site- packages/ bzrlib/ plugins/ svn/fetch. py", line 103, in _get_new_id file_id( self.revid, new_path) python2. 5/site- packages/ bzrlib/ plugins/ svn/fileids. py", line 56, in generate_file_id svn_file_ id(uuid, revnum, branch, path) python2. 5/site- packages/ bzrlib/ plugins/ svn/fileids. py", line 44, in generate_ svn_file_ id revision_ id, escape_ svn_path( path)) python2. 5/site- packages/ bzrlib/ plugins/ svn/repository. py", line 63, in escape_svn_path
added revision_id {svn-v2:
svn update -r 43 ''
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/
result = func(*args, **kwargs)
File "/usr/lib/
all)
File "/usr/lib/
source_
File "/usr/lib/
return InterRepository
File "/usr/lib/
svn.
File "/var/lib/
return apply(_
File "/usr/lib/
file_id = self._get_
File "/usr/lib/
return generate_
File "/usr/lib/
return generate_
File "/usr/lib/
ret = "%s-%s" % (introduced_
File "/usr/lib/
return unicode(''.join(r))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128)
return code 3
The problem with that revision is that I started using non ASCII chars for some files like:
Exámenes
I'm using Ubuntu Feisty package of bzr-svn version 0.3-0ubuntu2