Skip to content

Conversation

@pxinwr
Copy link
Contributor

@pxinwrpxinwr commented Apr 9, 2020

So far VxWorks RTOS only supports "C" locale and always use utf-8 encoding for the "C" locale.

https://bugs.python.org/issue31904

Copy link
Member

@vstinnervstinner left a comment

Choose a reason for hiding this comment

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

LGTM.

It's consistent with Include/pyport.h:

#if defined(__ANDROID__) || defined(__VXWORKS__) /* Ignore the locale encoding: force UTF-8 */ # define _Py_FORCE_UTF8_LOCALE #endif 

I added _Py_FORCE_UTF8_LOCALE to better support platforms where the locale is ignored and we force the usage of the UTF-8 encoding.

@vstinnervstinner merged commit 5cd2803 into python:masterApr 9, 2020
@pxinwrpxinwr deleted the fix-issue-31904-testclocale branch July 12, 2021 09:40
@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

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