aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-05-02 14:56:30 -0400
committerGitHub <noreply@github.com>2019-05-02 14:56:30 -0400
commit709d23dee69e700b87d5a4cb59e149d0e1af7993 (patch)
treeb06aafe79f83137a3c85649bcebf1fbfd2ea1240 /Programs
parentbpo-36776: Add @support.skip_unless_symlink to test_lll.py (GH-13058) (diff)
downloadcpython-709d23dee69e700b87d5a4cb59e149d0e1af7993.tar.gz
cpython-709d23dee69e700b87d5a4cb59e149d0e1af7993.tar.bz2
cpython-709d23dee69e700b87d5a4cb59e149d0e1af7993.zip
bpo-36775: _PyCoreConfig only uses wchar_t* (GH-13062)
_PyCoreConfig: Change filesystem_encoding, filesystem_errors, stdio_encoding and stdio_errors fields type from char* to wchar_t*. Changes: * PyInterpreterState: replace fscodec_initialized (int) with fs_codec structure. * Add get_error_handler_wide() and unicode_encode_utf8() helper functions. * Add error_handler parameter to unicode_encode_locale() and unicode_decode_locale(). * Remove _PyCoreConfig_SetString(). * Rename _PyCoreConfig_SetWideString() to _PyCoreConfig_SetString(). * Rename _PyCoreConfig_SetWideStringFromString() to _PyCoreConfig_DecodeLocale().
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_testembed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 6e764e3b6cc..2cadf82cb17 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -488,8 +488,8 @@ static int test_init_from_config(void)
Force it to 0 through the config. */
config.legacy_windows_stdio = 0;
#endif
- config.stdio_encoding = "iso8859-1";
- config.stdio_errors = "replace";
+ config.stdio_encoding = L"iso8859-1";
+ config.stdio_errors = L"replace";
putenv("PYTHONNOUSERSITE=");
Py_NoUserSiteDirectory = 0;