|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78007 - trunk/libs/filesystem/test
From: bdawes_at_[hidden]
Date: 2012-04-16 09:41:17
Author: bemandawes
Date: 2012-04-16 09:41:17 EDT (Mon, 16 Apr 2012)
New Revision: 78007
URL: http://svn.boost.org/trac/boost/changeset/78007
Log:
filesystem: change imbue test to avoid reliance on L string literal encoding, thus allow test to pass on Intel compiler for Windows
Text files modified:
trunk/libs/filesystem/test/path_unit_test.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/filesystem/test/path_unit_test.cpp
==============================================================================
--- trunk/libs/filesystem/test/path_unit_test.cpp (original)
+++ trunk/libs/filesystem/test/path_unit_test.cpp 2012-04-16 09:41:17 EDT (Mon, 16 Apr 2012)
@@ -654,8 +654,8 @@
std::cout << " testing with the imbued locale ..." << std::endl;
path p2("\xE2\x9C\xA2");
- CHECK(p2 == L"\u2722");
- CHECK(p2.wstring() == L"\u2722");
+ CHECK(p2.wstring().size() == 1);
+ CHECK(p2.wstring()[0] == 0x2722);
std::cout << " imbuing the original locale ..." << std::endl;
path::imbue(old_loc);
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