Call wxSetlocale the same way we call setlocale to possibly fix #2218.