[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread admin
Changes by admin : -- pull_requests: -1113 ___ Python tracker ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- pull_requests: +1113 ___ Python tracker ___ ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- pull_requests: -1113 ___ Python tracker ___ ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +1113 ___ Python tracker ___ ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: Closing the issue. Thanks for the patch Chi Hsuan Yen. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1756beed417c by Xavier de Gaye in branch 'default': Issue #28596: The preferred encoding is UTF-8 on Android. https://hg.python.org/cpython/rev/1756beed417c -- ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-07 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch version 5, updated comments. Thanks for all of those feedbacks :) -- Added file: http://bugs.python.org/file45785/android-locale-utf8.patch ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a performance issue. I will look at it shortly. -- ___ Python tracker ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-05 Thread STINNER Victor
STINNER Victor added the comment: android-locale-utf8.patch LGTM, but I added minor comments on the review. I would prefer to let Xavier merges this one, since he can test it. -- ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Thanks Victor. Here's new patch, which uses hasattr -- Added file: http://bugs.python.org/file45759/android-locale-utf8.patch ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-04 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Patch version 3, using sys.getandroidapilevel() -- Added file: http://bugs.python.org/file45751/android-locale-utf8.patch ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: -> xdegaye stage: needs patch -> patch review type: behavior -> performance versions: -Python 3.6 ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-11-18 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #28740: Add sys.getandroidapilevel(). -- ___ Python tracker ___

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-11-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-11-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Version 2 - use sys.implementation._multiarch to determine whether it's Android or not -- Added file: http://bugs.python.org/file45537/android-locale-utf8.patch ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-11-18 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Here's my try: force UTF-8 on Android as explained in msg281110. sys.getfilesystemencoding() is already UTF-8 since issue22747. Testing: 1. Starting up time 0.18~0.19s => 0.11~0.12s, on Android 6.0, ASUS ZE500KL (Qualcomm MSM8916 QuadCore 1.2GHz) 2. test_site

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-11-03 Thread Xavier de Gaye
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