File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -240,3 +240,33 @@ diff -ru Python-3.3.3/Python/pythonrun.c Python-3.3.3-android/Python/pythonrun.c
240240 #else
241241 PyErr_SetNone(PyExc_NotImplementedError);
242242 return NULL;
243+ diff -ru Python-3.3.3-android/Modules/_localemodule.c Python-3.3.3/Modules/_localemodule.c
244+ --- Python-3.3.3-android/Modules/_localemodule.c 2014-08-01 14:50:47.875804606 +0000
245+ +++ Python-3.3.3/Modules/_localemodule.c 2014-08-01 14:52:28.367804384 +0000
246+ @@ -38,6 +38,13 @@
247+ #include <windows.h>
248+ #endif
249+
250+ + #if __ANDROID__
251+ + /* Android's locale support is pretty much unusable, it's better to have the
252+ + higher-level module fall back to C locale emulation. */
253+ + #error "Android's locale support is too incomplete to create a usable module."
254+ + #endif
255+ +
256+ +
257+ PyDoc_STRVAR(locale__doc__, "Support for POSIX locales.");
258+
259+ static PyObject *Error;
260+ diff -ru Python-3.3.3/Modules/Setup.dist Python-3.3.3-android/Modules/Setup.dist
261+ --- Python-3.3.3/Modules/Setup.dist 2014-08-01 14:56:24.075803863 +0000
262+ +++ Python-3.3.3-android/Modules/Setup.dist 2014-08-01 15:10:21.963802012 +0000
263+ @@ -118,7 +118,7 @@
264+ itertools itertoolsmodule.c # Functions creating iterators for efficient looping
265+
266+ # access to ISO C locale support
267+ - _locale _localemodule.c # -lintl
268+ + #_locale _localemodule.c # -lintl
269+
270+ # Standard I/O baseline
271+ _io -I$(srcdir)/Modules/_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
272+
You can’t perform that action at this time.
0 commit comments