From 6d53e5ecae61464635903d215f25abafc3062238 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 6 Aug 2010 09:26:37 +0000 Subject: [PATCH] Change cygwin to use C locale - std::ctype yields incorrect results for xdigit class on this platform. [SVN r64628] --- include/boost/regex/config.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/regex/config.hpp b/include/boost/regex/config.hpp index d55881a3..a88a7852 100644 --- a/include/boost/regex/config.hpp +++ b/include/boost/regex/config.hpp @@ -255,6 +255,10 @@ # define BOOST_REGEX_USE_CPP_LOCALE #endif +#if defined(__CYGWIN__) +# define BOOST_REGEX_USE_C_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