[Buildbot-commits] [Buildbot] #1869: use surrogateescape to escape filesystem strings in Unicode

Buildbot nobody at buildbot.net
Fri Mar 11 19:51:56 UTC 2011


#1869: use surrogateescape to escape filesystem strings in Unicode
------------------------+----------------------
Reporter:  dustin       |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  major        |  Milestone:  1.0.+
 Version:  0.8.3p1      |   Keywords:  encoding
------------------------+----------------------
 PEP 383 introduces a "surrogateencoding" error handler for the
 {{{x.decode()}}} method, which allows strings that do not match the
 decoding to be "escaped" in the resulting Unicode string in such a way
 that they can later be decoded back to the original byte sequence.

 The PEP landed in Python 3.1, which doesn't help us very much, but if we
 can backport that or use a similar and forward-compatible method to make
 sure all filesystem strings are unicode, that would be great

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1869>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list