~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/diffservice

  • Committer: Matt Giuca
  • Date: 2010-02-18 08:33:51 UTC
  • Revision ID: matt.giuca@gmail.com-20100218083351-l6be6fpe244u2x4c
svnlogservice: utf-8 decoding of the relevant parts of the dictionary, so they are put into JSON as unicode strings, not UTF-8 strings which are decoded wrongly. svnlog now displays unicode characters correctly. This is the final fix in Launchpad Bug #523495 -- all Subversion filename issues fixed (except the crash on log and diff directly on a non-ASCII filename, covered by bug #523500).

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        revision1=revs[0],
65
65
        revision2=revs[1]
66
66
    )
67
 
    print cjson.encode({'diff': diff_text})
 
67
    print cjson.encode({'diff': diff_text.decode('utf-8')})
68
68
except pysvn.ClientError, e:
69
69
    error = e[0]
70
70