setlocale exception handling