Use set_locale instead of removed setlocale