/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/_rio_pyx.pyx

Allow surrogateescape in revprops.

Merged from https://code.launchpad.net/~jelmer/brz/surrogateescape/+merge/385402

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
                    raise ValueError("invalid rio tag %r" % (tag,))
176
176
        if tag is not None: # add last tag-value
177
177
            PyList_Append(pairs,
178
 
                (tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1, "strict")))
 
178
                (tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1, "surrogateescape")))
179
179
            return Stanza.from_pairs(pairs)
180
180
        else:     # didn't see any content
181
181
            return None