Fixed issue: Added missed setlocale()