[New-bugs-announce] [issue28596] on Android _bootlocale on startup relies on too many library modules

Xavier de Gaye report at bugs.python.org
Thu Nov 3 05:48:40 EDT 2016


New submission from Xavier de Gaye:

Android does not have langinfo.h and this results in _bootlocale importing locale on startup (see issue 26928).

IMHO it is not acceptable to fallback to locale.py if CODESET is not available (in answer to Victor question in msg199367), because there are now two code paths to investigate weird bugs such as the one described by Antoine in issue 9548. Also note that Android platforms have a slow processor and limited RAM size, so they would strongly benefit from a startup sequence avoiding the imports made by the locale module. Since there is already a _bootlocale module, what are now the objections to implement the patch Antoine has proposed in issue 9548 ?

Nosying people from issue 9548.

----------
components: Interpreter Core
messages: 279981
nosy: Arfrever, barry, benjamin.peterson, brett.cannon, christian.heimes, eric.araujo, eric.snow, flox, haypo, lemburg, mark.dickinson, ncoghlan, orsenthil, pitrou, python-dev, rhettinger, xdegaye
priority: normal
severity: normal
stage: needs patch
status: open
title: on Android _bootlocale on startup relies on too many library modules
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28596>
_______________________________________


More information about the New-bugs-announce mailing list