[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-patches
Subject:    [Patches] [ python-Patches-677429 ] Out of bounds indizes in PEP293 callbacks
From:       noreply () sourceforge ! net (SourceForge ! net)
Date:       2003-01-31 17:29:23
Message-ID: E18eeyh-0006hn-00 () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]

Patches item #677429, was opened at 2003-01-30 12:43
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=677429&group_id=5470

Category: None
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Walter Dörwald (doerwalter)
Summary: Out of bounds indizes in PEP293 callbacks

Initial Comment:
This patch changes the treatment of positions returned
by PEP293 error handers in the Unicode codecs: Negative
positions are treated as being relative to the end of
the input and out of bounds positions result in an
IndexError. The patch also updates the PEP and includes
an explanation of this in the documentation for
codecs.register_error. I don't know if this is the best
spot for it, or if it should be put somewhere else.

----------------------------------------------------------------------

>Comment By: Walter Dörwald (doerwalter)
Date: 2003-01-31 18:29

Message:
Logged In: YES 
user_id=89016

Checked in as:
Doc/lib/libcodecs.tex 1.17
Doc/lib/libfuncs.tex 1.128
Lib/test/test_codeccallbacks.py 1.9
Modules/_iconv_codec.c 1.7
Objects/unicodeobject.c 2.180
nondist/peps/pep-0293.txt 1.7

----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg)
Date: 2003-01-31 16:46

Message:
Logged In: YES 
user_id=38388

... and I thought Unicode was the keyword ;-)

I fully trust Walter on the error handler callbacks, so I'll
pass it on to him.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2003-01-31 16:23

Message:
Logged In: YES 
user_id=6380

Since this says "codec" I've assigned it to Marc-Andre. :-)

Marc-Andre, if you don't have time, feel free to unassign it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=677429&group_id=5470


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic