Added a call to setlocale.