#include <locale.h> static char s_default_locale[] = "C"; extern "C" { char* setlocale(int, const char*) { // FIXME: Set the current locale if <locale> is not NULL. return s_default_locale; } }