summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2019-03-04 09:02:06 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-03-04 09:02:06 (GMT)
commitf4b0a1c0da80318e0a4f4c70d2722f01ce3512dd (patch)
treef10e50c695bdeea8a9aeb06b59ace1d5540af53f /Include
parent8bc401a55ce5dfcdd225c20786ba8e221a0bf29b (diff)
downloadcpython-f4b0a1c0da80318e0a4f4c70d2722f01ce3512dd.zip
cpython-f4b0a1c0da80318e0a4f4c70d2722f01ce3512dd.tar.gz
cpython-f4b0a1c0da80318e0a4f4c70d2722f01ce3512dd.tar.bz2
bpo-31904: Add encoding support for VxWorks RTOS (GH-12051)
Use UTF-8 as the system encoding on VxWorks. The main reason are: 1. The locale is frequently misconfigured. 2. Missing some functions to deal with locale in VxWorks C library.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/coreconfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/coreconfig.h b/Include/cpython/coreconfig.h
index e3ebf73..8ad3b23 100644
--- a/Include/cpython/coreconfig.h
+++ b/Include/cpython/coreconfig.h
@@ -90,8 +90,8 @@ typedef struct {
* The UTF-8 Mode uses UTF-8/surrogateescape;
* If Python forces the usage of the ASCII encoding (ex: C locale
or POSIX locale on FreeBSD or HP-UX), use ASCII/surrogateescape;
- * locale encoding: ANSI code page on Windows, UTF-8 on Android,
- LC_CTYPE locale encoding on other platforms;
+ * locale encoding: ANSI code page on Windows, UTF-8 on Android and
+ VxWorks, LC_CTYPE locale encoding on other platforms;
* On Windows, "surrogateescape" error handler;
* "surrogateescape" error handler if the LC_CTYPE locale is "C" or "POSIX";
* "surrogateescape" error handler if the LC_CTYPE locale has been coerced