make setlocale works with ubuntu