Fix issue #2

Making all setlocale call in the same way