Don't rely on setlocale(), it doesn't know about newly generated locales