[issue19036] setlocale fails due to locale.h being wrapped up in LANGINFO check.
Alan Hourihane
report at bugs.python.org
Mon Sep 16 20:24:36 CEST 2013
Alan Hourihane added the comment:
Sure, Look in the function.....
check_force_ascii()
You'll see a hunk of code that is ifdef'd for ...
#if defined(HAVE_LANGINFO_H) && defined(CODESET)
Then you'll see
setlocale()
is called outside of that check, just before another hunk of code is
ifdef'd with the same....
#if defined(HAVE_LANGINFO_H) && defined(CODESET)
Basically making setlocale() outside of the check, and therefore requiring the #include <locale.h> outside of the above check as well.
In pythonrun.c the setlocale() call is already wrapped inside the #ifdef so the problem is bumped into there.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19036>
_______________________________________
More information about the Python-bugs-list
mailing list