set locale before the window manager starts