--- Programs/python.c~ +++ Programs/python.c @@ -43,13 +43,13 @@ m = fpgetmask(); fpsetmask(m & ~FP_X_OFL); #endif - +#ifndef __ANDROID__ oldloc = _PyMem_RawStrdup(setlocale(LC_ALL, NULL)); if (!oldloc) { fprintf(stderr, "out of memory\n"); return 1; } - +#endif setlocale(LC_ALL, ""); for (i = 0; i < argc; i++) { argv_copy[i] = Py_DecodeLocale(argv[i], NULL);