Message8922

Author zyasoft
Recipients alex.gronholm, yecril71pl, zyasoft
Date 2014-08-14.14:24:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1408026266.99.0.378052556825.issue2190@psf.upfronthosting.co.za>
In-reply-to
Content
We need to throw an appropriate Python error to complete this fix, given that we cannot support such lone surrogates using Jython's underlying UTF-16 representation of Unicode. I suggest ValueError, following this model:

>>> unichr(-1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unichr() arg not in range(0x110000)

So maybe the text should be somewhat like the following:

ValueError: unichr() arg is a lone surrogate in range (0xD800, 0xDFFF) (Jython UTF-16 encoding)

Target beta 4
History
Date User Action Args
2014-08-14 14:24:26zyasoftsetmessageid: <1408026266.99.0.378052556825.issue2190@psf.upfronthosting.co.za>
2014-08-14 14:24:26zyasoftsetrecipients: + zyasoft, alex.gronholm, yecril71pl
2014-08-14 14:24:26zyasoftlinkissue2190 messages
2014-08-14 14:24:26zyasoftcreate