Merge two calls to setlocale() into one