Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-34403: On HP-UX, force ASCII for C locale#8969

Merged
vstinner merged 2 commits into
python:masterpython/cpython:masterfrom
vstinner:hpux_force_asciiCopy head branch name to clipboard
Aug 28, 2018
Merged

bpo-34403: On HP-UX, force ASCII for C locale#8969
vstinner merged 2 commits into
python:masterpython/cpython:masterfrom
vstinner:hpux_force_asciiCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Aug 28, 2018

Copy link
Copy Markdown
Member

On HP-UX, with the C locale or POSIX locale, nl_langinfo(CODESET)
annonuces "roman8" wheras it uses the Latin1 encoding in practice.

https://bugs.python.org/issue34403

On HP-UX with C or POSIX locale, sys.getfilesystemencoding() now returns
"ascii" instead of "roman8" (when the UTF-8 Mode is disabled and the C locale
is not coerced).

nl_langinfo(CODESET) announces "roman8" whereas it uses the Latin1
encoding in practice.
@vstinner vstinner merged commit d500e53 into python:master Aug 28, 2018
@vstinner vstinner deleted the hpux_force_ascii branch August 28, 2018 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.