Message11039

Author stefan.richthofer
Recipients stefan.richthofer, yan12125
Date 2017-01-27.16:57:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485536226.75.0.424905944521.issue2527@psf.upfronthosting.co.za>
In-reply-to
Content
I guess I could easily fix this issue. However one decision puzzles me:
CPython rejects also extended askii cahracters in cStringIO, i.e. ordinal not in range(128). In contrast to that Jython used to throw an exception only if ordinal not in range(256) (see PyString.isBytes).

The example-code however fails in both cases, since it's not even extended ascii. Anyway, which version should trigger the UnicodeEncodeError?
On one hand I'd say stick to CPython-behavior. On the other hand I wouldn't want to break extisting code that might have been tested with the former Jython behavior. Opinions?
History
Date User Action Args
2017-01-27 16:57:06stefan.richthofersetmessageid: <1485536226.75.0.424905944521.issue2527@psf.upfronthosting.co.za>
2017-01-27 16:57:06stefan.richthofersetrecipients: + stefan.richthofer, yan12125
2017-01-27 16:57:06stefan.richthoferlinkissue2527 messages
2017-01-27 16:57:05stefan.richthofercreate