Issue1502

classification
Title: string-escape codec incorrect
Type: behaviour Severity: normal
Components: Core Versions: 2.5.1
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gz
Priority: Keywords: patch

Created on 2009-11-12.16:11:42 by gz, last changed 2009-11-12.16:11:42 by gz.

Files
File name Uploaded Description Edit Remove
jython_string_escape_codec.patch gz, 2009-11-12.16:11:41 Fix, diff against svn trunk
Messages
msg5307 (view) Author: Martin (gz) Date: 2009-11-12.16:11:41
The 'string-escape' codec (and its unicode cousin) do not escape the 
escape character, thus fail to roundtrip.

Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_16
Type "help", "copyright", "credits" or "license" for more information.
>>> "\\x00".encode("string-escape")
'\\x00'
>>> _.decode("string-escape")
'\x00'

One of the issues reported on jython-dev last week pertaining to 
running bazaar on jython.
History
Date User Action Args
2009-11-12 16:11:42gzcreate