[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-27 Thread STINNER Victor


STINNER Victor  added the comment:

Done. I close the issue.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-27 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset d929f1838a8fba881ff0148b7fc31f6265703e3d by Victor Stinner in 
branch 'master':
bpo-36443: Disable C locale coercion and UTF-8 Mode by default (GH-12589)
https://github.com/python/cpython/commit/d929f1838a8fba881ff0148b7fc31f6265703e3d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-27 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +12531
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36443] Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?

2019-03-26 Thread STINNER Victor


New submission from STINNER Victor :

bpo-36301 created a very strict separated between Python initialization and a 
new "pre-initialization" which is responsible to configure encodings and memory 
allocators.

Nick Coghlan proposed to disable UTF-8 Mode and C locale coercion by default in 
the pre-initialization, so the LC_CTYPE locale is not coerced by Python when 
it's embedded in an application.

Maybe the UTF-8 Mode can be automatically enabled (depending on the LC_CTYPE 
locale), but not the C locale coercion?

This issue is related to bpo-36202: Calling Py_DecodeLocale() before 
_PyPreConfig_Write() can produce mojibake.

--
components: Interpreter Core
messages: 338922
nosy: ncoghlan, vstinner
priority: normal
severity: normal
status: open
title: Disable coerce_c_locale and utf8_mode by default in _PyPreConfig?
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com