[issue16323] Wrong C API documentation for locale encoding

2012-11-29 Thread Andrew Svetlov
Andrew Svetlov added the comment: Removed bad sentence. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16323] Wrong C API documentation for locale encoding

2012-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset af45e9ec35f0 by Andrew Svetlov in branch '3.3': Remove redundant sentence from c-api docs (issue #16323) http://hg.python.org/cpython/rev/af45e9ec35f0 New changeset efedd0f62a7e by Andrew Svetlov in branch 'default': Merge: remove redundant sentence

[issue16323] Wrong C API documentation for locale encoding

2012-11-28 Thread STINNER Victor
STINNER Victor added the comment: "If a byte sequence can be decoded as a surrogate character and *errors* is not ``"strict"``, then the byte sequence is escaped using the ``"surrogateescape"`` error handler instead of being decoded." I don't understand this sentence but it sounds to be wrong. T

[issue16323] Wrong C API documentation for locale encoding

2012-11-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Really I don't know what's better. Victor, what do you think? -- ___ Python tracker ___ ___ Python-b

[issue16323] Wrong C API documentation for locale encoding

2012-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the sentence "If a byte sequence can be decoded as a surrogate character and *errors* is not ``"strict"``, then the byte sequence is escaped using the ``"surrogateescape"`` error handler instead of being decoded." is redundant. -- _

[issue16323] Wrong C API documentation for locale encoding

2012-11-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed. Thanks. -- nosy: +asvetlov resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16323] Wrong C API documentation for locale encoding

2012-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11629c14ce1f by Andrew Svetlov in branch '3.3': Issue #16323: Fix wrong C API documentation for locale encoding. http://hg.python.org/cpython/rev/11629c14ce1f New changeset 6f3d3003acf3 by Andrew Svetlov in branch 'default': Merge issue #16323: Fix

[issue16323] Wrong C API documentation for locale encoding

2012-11-16 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16323] Wrong C API documentation for locale encoding

2012-10-28 Thread Berker Peksag
Berker Peksag added the comment: > Hum, this is not correct. There are three valid values: > - NULL: strict > - "strict": strict > - "surrogateescape": use PEP 383 Thanks for the correction, Victor. Here's the updated patch. -- Added file: http://bugs.python.org/file27770/issue16323_

[issue16323] Wrong C API documentation for locale encoding

2012-10-27 Thread STINNER Victor
STINNER Victor added the comment: "Encode a Unicode object to the current locale encoding. The encoder is strict if *errors* is equal to ``strict``, otherwise it uses the ``'surrogateescape'`` error handler (:pep:`383`)." Hum, this is not correct. There are three valid values: - NULL: strict

[issue16323] Wrong C API documentation for locale encoding

2012-10-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, you forgot to update the documentation. -- nosy: +haypo ___ Python tracker ___ ___ Python-

[issue16323] Wrong C API documentation for locale encoding

2012-10-27 Thread Berker Peksag
Berker Peksag added the comment: Also, the documentation for PyUnicode_DecodeLocaleAndSize() is wrong. Patch attached. Related changeset: http://hg.python.org/cpython/rev/07802351ccad -- keywords: +patch nosy: +berker.peksag Added file: http://bugs.python.org/file27750/issue16323.patch

[issue16323] Wrong C API documentation for locale encoding

2012-10-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The documentation for PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale() are wrong. The second parameter described as "int surrogateescape", but actually it is "const char *errors". -- assignee: docs@python components: Documentation, Unicode mes