locale: use nullptr as default locale on non-Windows systems

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2024-02-08 14:02:20 +01:00
parent f5f4cbf308
commit a4ca4df926

View File

@ -100,15 +100,15 @@ namespace stdex
///
/// Reusable default charset locale
///
const inline locale locale_default(create_locale(LC_ALL,
const inline locale locale_default(
#ifdef WIN32
#ifdef _CONSOLE
".OCP"
create_locale(LC_ALL, ".OCP")
#else
".ACP"
create_locale(LC_ALL, ".ACP")
#endif
#else
""
nullptr
#endif
));
);
}