[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed to trunk in r80215. I'm going to watch the buildbots, I suspect OS X might dislike surrogates in the filename. -- ___ Python tracker __

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti added the comment: > >> I consider this an important missing backport for 2.7, since >> without this handler, the UTF-8 codecs in 2.7 and 3.x are >> incompatible and there's no other way to work around this >> other th

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Ezio Melotti
Ezio Melotti added the comment: > I consider this an important missing backport for 2.7, since > without this handler, the UTF-8 codecs in 2.7 and 3.x are > incompatible and there's no other way to work around this > other than to make use of the errorhandler conditionally > depend on the Python

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> I think it would be best to backport the handler (even though >> it is not needed in Python 2.7), since it makes porting apps >> to 3.x easier. > > surrogateescape should not be used dire

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16975/surrogateescape.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: New patch fixing Windows compatibility. -- Added file: http://bugs.python.org/file16977/surrogateescape.patch ___ Python tracker ___ ___

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread STINNER Victor
STINNER Victor added the comment: > I think it would be best to backport the handler (even though > it is not needed in Python 2.7), since it makes porting apps > to 3.x easier. surrogateescape should not be used directly be applications. It's used by Python3 internals using unicode by defau

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file16975/surrogateescape.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file16974/surrogateescape.patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a fix + test. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file16974/surrogateescape.patch ___ Python tracker

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: The 2.x io lib should use the same encoding principles as the rest of 2.x. -- ___ Python tracker ___

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Any new features in 2.7 require approval from the release manager now. Not only, but they also need someone to provide a patch :) Removing any surrogateescape use from the io module would be comparatively much easier. -- nosy: +benjamin.peterson __

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Since 2.7 is meant to be the last release of the 2.x series, > we have to make sure that it has all the bits necessary to make > porting apps to 3.x easy. Any new features in 2.7 require approval from the release manager now. -- ___

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > -1 on backporting. The handler isn't really meant to be used in applications, > plus 2.7 is in feature-freeze. Since 2.7 is meant to be the last release of the 2.x series, we have to make

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1 on backporting. The handler isn't really meant to be used in applications, plus 2.7 is in feature-freeze. -- ___ Python tracker ___ ___

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think it would be best to backport the handler (even though it is not needed in Python 2.7), since it makes porting apps to 3.x easier. -- nosy: +lemburg ___ Python tracker

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Certainly a bug indeed. -- components: +IO -Unicode nosy: +pitrou priority: -> high ___ Python tracker ___

[issue8438] Codecs: "surrogateescape" error handler in Python 2.7

2010-04-18 Thread Ray.Allen
New submission from Ray.Allen : According to PEP 383, the new "surrogateescape" error handler of codecs should begin to appear since Python3.1, but in the trunk I found some code have already used it: Modules/_io/fileio.c: static int fileio_init(PyObject *oself, PyObject *args, PyObject *kwds