remove broken configure_locale function