This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Out of bounds indizes in PEP293 callbacks
Type: Stage:
Components: None Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: doerwalter Nosy List: doerwalter, gvanrossum, lemburg
Priority: normal Keywords: patch

Created on 2003-01-30 11:43 by doerwalter, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
diff.txt doerwalter, 2003-01-30 11:43
Messages (4)
msg42592 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2003-01-30 11:43
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.
msg42593 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-01-31 15:23
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.
msg42594 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2003-01-31 15:46
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.
msg42595 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2003-01-31 17:29
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
History
Date User Action Args
2022-04-10 16:06:19adminsetgithub: 37869
2003-01-30 11:43:06doerwaltercreate