locale: use nullptr as default locale on Windows too
Since stdex::locale_default is inline, it is initialized by the first module referencing it. Not necessarily compiled with the same _CONSOLE definition as other modules. This makes the default locale fluid. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
87d678f524
commit
f689011a65
@ -105,17 +105,7 @@ namespace stdex
|
||||
///
|
||||
/// Reusable default charset locale
|
||||
///
|
||||
const inline locale locale_default(
|
||||
#ifdef WIN32
|
||||
#ifdef _CONSOLE
|
||||
create_locale(LC_ALL, ".OCP")
|
||||
#else
|
||||
create_locale(LC_ALL, ".ACP")
|
||||
#endif
|
||||
#else
|
||||
nullptr
|
||||
#endif
|
||||
);
|
||||
const inline locale locale_default(nullptr);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__)
|
||||
|
Loading…
x
Reference in New Issue
Block a user