add setlocale to main function