correctly initialize C++ locale as well as C locale