mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #19977: Fix test_capi when LC_CTYPE locale is POSIX
This commit is contained in:
parent
97f17a784a
commit
b2bef62e91
2 changed files with 20 additions and 16 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue