Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f4333d04
Commit
f4333d04
authored
Mar 27, 2019
by
hliu0
Committed by
Victor Stinner
Mar 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-31904: Fix test_utf8_mode on VxWorks (GH-12428)
Python always use UTF-8 on VxWorks.
parent
34ef64fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_utf8_mode.py
Lib/test/test_utf8_mode.py
+2
-2
Misc/NEWS.d/next/Tests/2019-03-19-17-39-25.bpo-31904.QxhhRx.rst
...EWS.d/next/Tests/2019-03-19-17-39-25.bpo-31904.QxhhRx.rst
+1
-0
No files found.
Lib/test/test_utf8_mode.py
View file @
f4333d04
...
...
@@ -12,7 +12,7 @@ from test.support.script_helper import assert_python_ok, assert_python_failure
MS_WINDOWS
=
(
sys
.
platform
==
'win32'
)
POSIX_LOCALES
=
(
'C'
,
'POSIX'
)
VXWORKS
=
(
sys
.
platform
==
"vxworks"
)
class
UTF8ModeTests
(
unittest
.
TestCase
):
DEFAULT_ENV
=
{
...
...
@@ -225,7 +225,7 @@ class UTF8ModeTests(unittest.TestCase):
with
self
.
subTest
(
LC_ALL
=
loc
):
check
(
'utf8'
,
[
arg_utf8
],
LC_ALL
=
loc
)
if
sys
.
platform
==
'darwin'
or
support
.
is_android
:
if
sys
.
platform
==
'darwin'
or
support
.
is_android
or
VXWORKS
:
c_arg
=
arg_utf8
elif
sys
.
platform
.
startswith
(
"aix"
):
c_arg
=
arg
.
decode
(
'iso-8859-1'
)
...
...
Misc/NEWS.d/next/Tests/2019-03-19-17-39-25.bpo-31904.QxhhRx.rst
0 → 100644
View file @
f4333d04
Fix test_utf8_mode on VxWorks: Python always use UTF-8 on VxWorks.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment