Skip to content

Conversation

@hliu0
Copy link
Contributor

@hliu0hliu0 commented Mar 19, 2019

VxWorks uses UTF-8 as the system encoding. So the test case test_utf8_mode.py need to be updated to use UTF-8 on VxWorks.

https://bugs.python.org/issue31904

VxWorks uses UTF-8 as the system encoding.
MS_WINDOWS = (sys.platform == 'win32')
POSIX_LOCALES = ('C', 'POSIX')

_vxworks = (sys.platform == "vxworks")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename the constant to VXWORKS.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the requested changes; please review again

@@ -0,0 +1,2 @@
VxWorks uses UTF-8 as the system encoding. So the test case test_utf8_mode.py
need to be updated to use UTF-8 on VxWorks.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose:

Fix test_utf8_mode on VxWorks: Python always use UTF-8 on VxWorks .

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made the requested changes; please review again

@bedevere-bot
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

Replace _vxworks with VXWORKS for VxWorks
@vstinnervstinner merged commit f4333d0 into python:masterMar 27, 2019
@pxinwrpxinwr deleted the fix-issue-31904-utf8-mode branch April 9, 2020 06:16
@kuhlenoughkuhlenoughmannequin mentioned this pull request Jan 12, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@hliu0@bedevere-bot@vstinner@the-knights-who-say-ni