svn_oo.Revision.get_log can fail when the message is not unicode

Bug #724425 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad CSCVS
Won't Fix
Medium
Unassigned

Bug Description

The code import for Imagination's SVN is currently failing because there is a commit message that contains bad or unexpected encoding (https://code.launchpad.net/~vcs-imports/imagination/trunk):

    revision, logger=logger, strict=strict, summarize=apply.summary)
  File "/srv/importd.launchpad.net/production/launchpad-rev-12438/lib/cscvs/bzr.py", line 160, in commitWithAutomaticLog
    message = revision.get_log().decode('utf-8', 'replace')
  File "/srv/importd.launchpad.net/production/launchpad-rev-12438/lib/svn_oo/Revision.py", line 114, in get_log
    return self.log['message'].encode('utf8')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 81: ordinal not in range(128)

This issue is similar to bug 487897 and bug 114034. All might be fixable by ignoring the problem:
    str.encode('UTF-8', 'ignore')

Revision history for this message
Max Bowsher (maxb) wrote :

I recall seeing encoding-related fails in many other CSCVS imports too.

I have moved the broken import to https://code.launchpad.net/~vcs-imports/imagination/trunk-cscvs and am recreating a bzr-svn import.

Revision history for this message
Robert Collins (lifeless) wrote :

LP now uses bzr-svn for svn imports.

Changed in launchpad-cscvs:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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