diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-03-18 01:38:12 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-03-18 01:38:12 (GMT) |
commit | b2bef62e9114c2184daba1c8253ea3d1f1dc5976 (patch) | |
tree | 1b621aa78e891f6fe90c939ff2c863cdd30c9bb3 /Modules/_testembed.c | |
parent | 97f17a784ad8d428c63b35e3008deb9332f195a6 (diff) | |
download | cpython-b2bef62e9114c2184daba1c8253ea3d1f1dc5976.zip cpython-b2bef62e9114c2184daba1c8253ea3d1f1dc5976.tar.gz cpython-b2bef62e9114c2184daba1c8253ea3d1f1dc5976.tar.bz2 |
Issue #19977: Fix test_capi when LC_CTYPE locale is POSIX
Diffstat (limited to 'Modules/_testembed.c')
-rw-r--r-- | Modules/_testembed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testembed.c b/Modules/_testembed.c index a21d251..39ff097 100644 --- a/Modules/_testembed.c +++ b/Modules/_testembed.c @@ -109,11 +109,11 @@ static void test_forced_io_encoding(void) printf("--- Use defaults ---\n"); check_stdio_details(NULL, NULL); printf("--- Set errors only ---\n"); - check_stdio_details(NULL, "surrogateescape"); + check_stdio_details(NULL, "ignore"); printf("--- Set encoding only ---\n"); check_stdio_details("latin-1", NULL); printf("--- Set encoding and errors ---\n"); - check_stdio_details("latin-1", "surrogateescape"); + check_stdio_details("latin-1", "replace"); /* Check calling after initialization fails */ Py_Initialize(); |