Skip to content

Commit 5cd2803

Browse files
authored
bpo-31904: Fix test_c_locale_coercion encodings for VxWorks RTOS (GH-19448)
1 parent dcb04d9 commit 5cd2803

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Lib/test/test_c_locale_coercion.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
# TODO: Work out a robust dynamic test for this that doesn't rely on
5050
# CPython's own locale handling machinery
5151
EXPECT_COERCION_IN_DEFAULT_LOCALE = False
52+
elif sys.platform == "vxworks":
53+
# VxWorks defaults to using UTF-8 for all system interfaces
54+
EXPECTED_C_LOCALE_STREAM_ENCODING = "utf-8"
55+
EXPECTED_C_LOCALE_FS_ENCODING = "utf-8"
5256

5357
# Note that the above expectations are still wrong in some cases, such as:
5458
# * Windows when PYTHONLEGACYWINDOWSFSENCODING is set
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set expected default encoding in test_c_locale_coercion.py for VxWorks RTOS.

0 commit comments

Comments
 (0)