fix localeconv values and implementation