summaryrefslogtreecommitdiffstats
path: root/Include/fileutils.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-11-08 22:43:46 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-11-08 22:43:46 (GMT)
commit2f02a511353c761bef2ab867ca4295bbb0217b96 (patch)
tree955a54d70d6f09279e7fd593e15f003d139b7b2b /Include/fileutils.h
parent0cfba09b097d2aa4d35c7b1411cb32565f17a891 (diff)
downloadcpython-2f02a511353c761bef2ab867ca4295bbb0217b96.zip
cpython-2f02a511353c761bef2ab867ca4295bbb0217b96.tar.gz
cpython-2f02a511353c761bef2ab867ca4295bbb0217b96.tar.bz2
PyUnicode_EncodeFS() raises an exception if _Py_wchar2char() fails
* Add error_pos optional argument to _Py_wchar2char() * PyUnicode_EncodeFS() raises a UnicodeEncodeError or MemoryError if _Py_wchar2char() fails
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r--Include/fileutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index 11ebebf..2fade9b 100644
--- a/Include/fileutils.h
+++ b/Include/fileutils.h
@@ -10,7 +10,8 @@ PyAPI_FUNC(wchar_t *) _Py_char2wchar(
size_t *size);
PyAPI_FUNC(char*) _Py_wchar2char(
- const wchar_t *text);
+ const wchar_t *text,
+ size_t *error_pos);
#if defined(HAVE_STAT) && !defined(MS_WINDOWS)
PyAPI_FUNC(int) _Py_wstat(