summaryrefslogtreecommitdiffstats
path: root/Programs/_testembed.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-08-03 20:49:07 (GMT)
committerGitHub <noreply@github.com>2018-08-03 20:49:07 (GMT)
commit5a953fd0ab4d0f792f4c1537616b2ce8ee40d976 (patch)
treecad675955816179aa53030f5ba6ae7526e6caba5 /Programs/_testembed.c
parent7b41dbad78c6b03ca2f98800a92a1977d3946643 (diff)
downloadcpython-5a953fd0ab4d0f792f4c1537616b2ce8ee40d976.zip
cpython-5a953fd0ab4d0f792f4c1537616b2ce8ee40d976.tar.gz
cpython-5a953fd0ab4d0f792f4c1537616b2ce8ee40d976.tar.bz2
bpo-34170: _PyCoreConfig_Read() don't replace coerce_c_locale (GH-8658)
If coerce_c_locale is already set (>= 0), use its value: don't override it.
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r--Programs/_testembed.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 027de48..f1d30f6 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -373,6 +373,8 @@ dump_config(void)
printf("quiet = %i\n", config->quiet);
printf("user_site_directory = %i\n", config->user_site_directory);
printf("buffered_stdio = %i\n", config->buffered_stdio);
+ ASSERT_EQUAL(config->buffered_stdio, !Py_UnbufferedStdioFlag);
+
/* FIXME: test legacy_windows_fs_encoding */
/* FIXME: test legacy_windows_stdio */