homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients Alex.Willmer, xdegaye
Date 2016年05月05日.10:44:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462445080.44.0.201210369439.issue26928@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is caused by the fact that android does not have HAVE_LANGINFO_H and CODESET set, hence in the _bootlocale module, the statement '_locale.CODESET' raises AttributeError and the locale module is imported upon interpreter startup. The locale module imports re.
See issue #19205 for why we would rather not import re and locale on startup.
This seems difficult to fix without either skipping most part of the test as it is done with Mac OS X, or having a specific sys.platform for android to handle the AttributeError in _bootlocale by having the getpreferredencoding() fuction returning 'UTF-8' ('UTF-8' is the file system encoding on android).
History
Date User Action Args
2016年05月05日 10:44:40xdegayesetrecipients: + xdegaye, Alex.Willmer
2016年05月05日 10:44:40xdegayesetmessageid: <1462445080.44.0.201210369439.issue26928@psf.upfronthosting.co.za>
2016年05月05日 10:44:40xdegayelinkissue26928 messages
2016年05月05日 10:44:40xdegayecreate

AltStyle によって変換されたページ (->オリジナル) /