From c1d2d1a73646a4578eddfa71fbeec315e94fd5d6 Mon Sep 17 00:00:00 2001 From: Mikael Olenfalk Date: Thu, 8 Oct 2015 09:40:52 +0200 Subject: [PATCH] universal-windows: Use C++ locale --- include/boost/regex/config.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index af2c2fa4..90d012df 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -289,6 +289,11 @@ # define BOOST_REGEX_USE_C_LOCALE #endif +/* use C++ locale when targeting windows store */ +#if BOOST_PLAT_WINDOWS_RUNTIME +# define BOOST_REGEX_USE_CPP_LOCALE +#endif + /* Win32 defaults to native Win32 locale: */ #if defined(_WIN32) && !defined(BOOST_REGEX_USE_WIN32_LOCALE) && !defined(BOOST_REGEX_USE_C_LOCALE) && !defined(BOOST_REGEX_USE_CPP_LOCALE) && !defined(BOOST_REGEX_NO_W32) # define BOOST_REGEX_USE_WIN32_LOCALE