only attempt to switch locales if the locale has been changed, stops windows complaining