use setlocale to set locale