summaryrefslogtreecommitdiffstats
path: root/Include/fileutils.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-01 10:28:48 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-01 10:28:48 (GMT)
commitf6a271ae980d2f3fb450f745b8f87624378156c4 (patch)
treeae0c09042455826ae38875945dadd4919ca8f235 /Include/fileutils.h
parentc6f8c0a1de448e7ca62ece1d21f089194d31f0d9 (diff)
downloadcpython-f6a271ae980d2f3fb450f745b8f87624378156c4.zip
cpython-f6a271ae980d2f3fb450f745b8f87624378156c4.tar.gz
cpython-f6a271ae980d2f3fb450f745b8f87624378156c4.tar.bz2
Issue #18395: Rename ``_Py_char2wchar()`` to :c:func:`Py_DecodeLocale`, rename
``_Py_wchar2char()`` to :c:func:`Py_EncodeLocale`, and document these functions.
Diffstat (limited to 'Include/fileutils.h')
-rw-r--r--Include/fileutils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index f2a43f7..c5eebc5 100644
--- a/Include/fileutils.h
+++ b/Include/fileutils.h
@@ -7,11 +7,11 @@ extern "C" {
PyAPI_FUNC(PyObject *) _Py_device_encoding(int);
-PyAPI_FUNC(wchar_t *) _Py_char2wchar(
+PyAPI_FUNC(wchar_t *) Py_DecodeLocale(
const char *arg,
size_t *size);
-PyAPI_FUNC(char*) _Py_wchar2char(
+PyAPI_FUNC(char*) Py_EncodeLocale(
const wchar_t *text,
size_t *error_pos);