set locale before compiling