Comments (5)
Ohh dear... well we will have to work on this a bit more. Unfortunately Bionic
(Android's version of libc) explicit says it doesn't support locales. Either we
port from another library localeconv and all the locale pieces, or we need to
do monkey patching.
Ok in the mean time there's a workaround you can try, it's a bit hacky but
works, see the attached file. You should do this before calling strptime, doing
it once is enough.
Original comment by [email protected]
on 18 Feb 2011 at 6:11
- Changed state: Started
Attachments:
from python-for-android.
Of course your patch works in this instance, but since there is no locale
support in libc and since the locale.py module already has emulation code for
use in these circumstances, why not just stop including _locale.so?
I read somewhere that Google suggests using ICU if locale support is really
necessary.
Original comment by [email protected]
on 22 Feb 2011 at 4:58
from python-for-android.
isn't _locale.so needed for optparse and others to work?
Original comment by [email protected]
on 23 Feb 2011 at 9:39
from python-for-android.
If _locale.so is removed, then the fallback code in locale.py appears to work
fine. Both optparse and strptime work without it.
Original comment by [email protected]
on 23 Feb 2011 at 3:10
from python-for-android.
Fixed in python release _r15
Removed _locale.so from release, as android doesn't support anyway. Module
falls back to sensible defaults without it.
Original comment by rjmatthews62
on 20 Mar 2011 at 2:10
- Changed state: Fixed
from python-for-android.
Related Issues (20)
- Install fails on Galaxy Nexus Jelly Bean
- dumbdbm module fails to set file mode
- Image stream capture
- "Bluetooth not ready for this ConnID" Java.io.IOexception HOT 4
- Not working Python scripts HOT 1
- BaseHTTPServer 'TCPServer' AttributeError HOT 1
- Image module
- android for SL4A crashes on Sumsung Note 2 HOT 3
- Python3ForAndroid_r6.apk - application can't be moved from "system memory" to "internal memory"
- Interested User.
- Python-2.7.2-android.patch HOT 3
- error: undefined reference to 'Py_InitModule4_64'
- Error while importing modules HOT 9
- cdll.LoadLibray - not able to load externally compiled lib
- startSensingTimed syntax error
- sl4a r6 doesn't show menu below on Galaxy s5 HOT 4
- Help() modules causes system reboot
- Accessing Android API
- tkinter with androwish 8.6
- imy phone has being used by someone eles with a luncher 2 menu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-for-android.