Skip to content

localeconv() workaround doesn't help on Android #527

Closed
@DrMetallius

Description

@DrMetallius

The workaround for missing locale support introduced in 894e78b doesn't seem to be working. I compile with NDK r12b, with clang as the compiler, c++_shared as my library, and android-9 as the platform, and it tells me that it can't build it because of the "undefined reference to 'localeconv'". This comes from json_tool.h.

sizeof(struct lconv) is 56. So it clearly is larger than a simple stub for whatever reason, that's why everything fails. Honestly, I think that a preprocessor macro would be much simpler and more reliable than this template magic.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions