Check USE_LOCALE

setlocale should be used only if USE_LOCALE is true