Boost logo

Boost-Commit :

From: bdawes_at_[hidden]
Date: 2007-11-01 12:35:46


Author: bemandawes
Date: 2007-11-01 12:35:45 EDT (Thu, 01 Nov 2007)
New Revision: 40646
URL: http://svn.boost.org/trac/boost/changeset/40646

Log:
Mingw doesn't support GetUserDefaultUILanguage so set it to US English.
Text files modified:
   trunk/libs/filesystem/test/operations_test.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/filesystem/test/operations_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/operations_test.cpp (original)
+++ trunk/libs/filesystem/test/operations_test.cpp 2007-11-01 12:35:45 EDT (Thu, 01 Nov 2007)
@@ -269,7 +269,11 @@
     platform = "POSIX";
 # elif defined( BOOST_WINDOWS_API )
     platform = "Windows";
- language_id = ::GetUserDefaultUILanguage();
+# ifndef __MINGW32__
+ language_id = ::GetUserDefaultUILanguage();
+# else
+ language_id = 0x0409; // Assume US English
+# endif
 # else
     platform = ( platform == "Win32" || platform == "Win64" || platform == "Cygwin" )
                ? "Windows"


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