From a4ca4df926f5e1f09145dd0dc0e50ee843726a79 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 8 Feb 2024 14:02:20 +0100 Subject: [PATCH] locale: use nullptr as default locale on non-Windows systems Signed-off-by: Simon Rozman --- include/stdex/locale.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/stdex/locale.hpp b/include/stdex/locale.hpp index b15e335f7..1f3f6ae76 100644 --- a/include/stdex/locale.hpp +++ b/include/stdex/locale.hpp @@ -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 - )); + ); }