[Python-checkins] r73698 - in python/branches/py3k: Lib/test/test_codecs.py Misc/NEWS Objects/unicodeobject.c

Neal Norwitz nnorwitz at gmail.com
Tue Jun 30 06:59:42 CEST 2009


On Mon, Jun 29, 2009 at 3:36 PM,
amaury.forgeotdarc<python-checkins at python.org> wrote:
> Author: amaury.forgeotdarc
> Date: Tue Jun 30 00:36:49 2009
> New Revision: 73698
>> Log:
> #6373: SystemError in str.encode('latin1', 'surrogateescape')

This says SystemError. See below.
> if the string contains unpaired surrogates.
> (In debug build, crash in assert())
>> This can happen with normal processing, if python starts with utf-8,
> then calls sys.setfilesystemencoding('latin-1')
>>> Modified:
>   python/branches/py3k/Lib/test/test_codecs.py
>   python/branches/py3k/Misc/NEWS
>   python/branches/py3k/Objects/unicodeobject.c
>> Modified: python/branches/py3k/Misc/NEWS
> ==============================================================================
> --- python/branches/py3k/Misc/NEWS      (original)
> +++ python/branches/py3k/Misc/NEWS      Tue Jun 30 00:36:49 2009
> @@ -12,6 +12,10 @@
>  Core and Builtins
>  -----------------
>> +- Issue #6373: Fixed a RuntimeError when encoding with the latin-1 codec and
> +  the 'surrogateescape' error handler, a string which contains unpaired
> +  surrogates.
> +

This says RuntimeError. I assume one is incorrect. :-)
n


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /