Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64628 - trunk/boost/regex
From: john_at_[hidden]
Date: 2010-08-06 05:27:16


Author: johnmaddock
Date: 2010-08-06 05:26:37 EDT (Fri, 06 Aug 2010)
New Revision: 64628
URL: http://svn.boost.org/trac/boost/changeset/64628

Log:
Change cygwin to use C locale - std::ctype yields incorrect results for xdigit class on this platform.
Text files modified:
   trunk/boost/regex/config.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/regex/config.hpp
==============================================================================
--- trunk/boost/regex/config.hpp (original)
+++ trunk/boost/regex/config.hpp 2010-08-06 05:26:37 EDT (Fri, 06 Aug 2010)
@@ -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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk