New submission from STINNER Victor <victor.stin...@haypocalc.com>:

_PyUnicode_AsDefaultEncodedString() has two arguments: unicode (input string) 
and errors. If errors is not NULL, it calls Py_FatalError()!

The argument is useful: all functions call it with errors=NULL.

Attached patch removes the argument.

----------
components: Unicode
files: unicode_errors.patch
keywords: patch
messages: 107204
nosy: haypo
priority: normal
severity: normal
status: open
title: Remove unused "errors" argument from _PyUnicode_AsDefaultEncodedString()
versions: Python 3.2
Added file: http://bugs.python.org/file17575/unicode_errors.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8923>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to