This program will do: #include <locale.h> void main() { (void) setlocale(LC_ALL, ""); } cc -mabi=32 test.c the following hangs: env LC_ALL="en_US.UTF-8" ./a.out doesn't hang: env LC_ALL="C" ./a.out