Fixed setlocale