Crash with regex, setlocale() return 0 on CW