[New-bugs-announce] [issue20305] Android's incomplete locale.h implementation prevents compilation

Shiz report at bugs.python.org
Sun Jan 19 19:13:22 CET 2014

New submission from Shiz:

As a result of Android's relatively incomplete locale.h implementation[1], some functions are not defined and some standard structs are lacking fields (e.g. decimal_point, thousand_sep).
This prevents proper cross-compilation using the Android NDK[2] from succeeding.

Attached is a patch which works around the various issues posed by Android's locale.h implementation, mainly involving falling back to default locale values, causing compilation in that department for the author to succeed.

[1]: https://groups.google.com/forum/#!topic/android-ndk/PBK4KkRpDoU
[2]: https://developer.android.com/tools/sdk/ndk/index.html

components: Cross-Build
files: Python-3.4.0tip-workaround-android-locale-issues.patch
keywords: patch
messages: 208486
nosy: shiz
priority: normal
severity: normal
status: open
title: Android's incomplete locale.h implementation prevents compilation
type: compile error
versions: Python 3.4
Added file: http://bugs.python.org/file33549/Python-3.4.0tip-workaround-android-locale-issues.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list