[issue12451] open: avoid the locale encoding when possible

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: Ok, it should be enough :-) -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue12451] open: avoid the locale encoding when possible

2011-07-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8b62f5d722f4 by Victor Stinner in branch '3.2': Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support Python http://hg.python.org/cpython/rev/8b62f5d722f4 New changeset 2fbfb7ea362f by Victor Stinner in branch 'default': (merge 3.

[issue12451] open: avoid the locale encoding when possible

2011-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1b4f1716b73 by Victor Stinner in branch '3.2': Issue #12451: pydoc: importfile() now opens the Python script in binary mode, http://hg.python.org/cpython/rev/a1b4f1716b73 New changeset 5ca136dccbf7 by Victor Stinner in branch 'default': (merge 3.2

[issue12451] open: avoid the locale encoding when possible

2011-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd1759711357 by Victor Stinner in branch '3.2': Issue #12451: runpy: run_path() now opens the Python script in binary mode, http://hg.python.org/cpython/rev/cd1759711357 New changeset e240af1f0ae1 by Victor Stinner in branch 'default': (merge 3.2)

[issue12451] open: avoid the locale encoding when possible

2011-07-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 81424281ee59 by Victor Stinner in branch '3.2': Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead http://hg.python.org/cpython/rev/81424281ee59 New changeset c039c6b58907 by Victor Stinner in branch 'default': (merge 3.2

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0c49260e85a0 by Victor Stinner in branch 'default': Issue #12451: Add support.create_empty_file() http://hg.python.org/cpython/rev/0c49260e85a0 -- ___ Python tracker

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also issue #12454 for the mailbox module (.mh_sequences). -- ___ Python tracker ___ ___ Python-

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c4388478f9b2 by Victor Stinner in branch 'default': Issue #12451: Open the test file in binary mode in test_bz2, the text file is http://hg.python.org/cpython/rev/c4388478f9b2 -- ___ Python tracker

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68bc1a29ba5a by Victor Stinner in branch '3.2': Issue #12451: Open files in binary mode in some tests when the text file is not http://hg.python.org/cpython/rev/68bc1a29ba5a New changeset 3969b6377f52 by Victor Stinner in branch 'default': (merge 3

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45e3dafb3dbe by Victor Stinner in branch '3.2': Issue #12451: The XInclude default loader of xml.etree now decodes files from http://hg.python.org/cpython/rev/45e3dafb3dbe New changeset e8eea84a90dc by Victor Stinner in branch 'default': (merge 3.2

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread STINNER Victor
STINNER Victor added the comment: See also issue #9561 for distutils: I just attached a new patch for PKG-INFO / .egg-info files. -- ___ Python tracker ___

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bafc5c7d24b2 by Victor Stinner in branch '3.2': Issue #12451: doctest.debug_script() doesn't create a temporary file anymore to http://hg.python.org/cpython/rev/bafc5c7d24b2 New changeset 77c589b27e90 by Victor Stinner in branch 'default': (merge 3

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1942f7c8f51c by Victor Stinner in branch '3.2': Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, to http://hg.python.org/cpython/rev/1942f7c8f51c New changeset 3e627877b5a9 by Victor Stinner in branch 'default': (merge 3.2

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bd73edea78dc by Victor Stinner in branch '3.2': Issue #12451: distutils now opens the setup script in binary mode to read the http://hg.python.org/cpython/rev/bd73edea78dc New changeset 8a7fd54cba01 by Victor Stinner in branch 'default': (merge 3.2

[issue12451] open: avoid the locale encoding when possible

2011-06-30 Thread STINNER Victor
New submission from STINNER Victor : open() uses the locale encoding in Python 3 when opening text file if the encoding argument is not specified (implicit). Some functions use locale encoding, but it's not the right encoding. I see at least three cases where the encoding should be changed: