summaryrefslogtreecommitdiff
path: root/Rx/v2/test/operators
diff options
context:
space:
mode:
authorKirk Shoop <kirk.shoop@microsoft.com>2014-08-03 00:06:38 -0700
committerKirk Shoop <kirk.shoop@microsoft.com>2014-08-03 00:06:38 -0700
commit479f737e1a9fb77ae26eb14455da263d76e9bfd8 (patch)
tree4b78edee14495752b8b0171957530c18d6dfc455 /Rx/v2/test/operators
parent206955e96e184f99c7a4c7002ae6f0af6b469a3c (diff)
downloadRxCpp-479f737e1a9fb77ae26eb14455da263d76e9bfd8.tar.gz
change tolower and isspace to use classic locale
Diffstat (limited to 'Rx/v2/test/operators')
-rw-r--r--Rx/v2/test/operators/group_by.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rx/v2/test/operators/group_by.cpp b/Rx/v2/test/operators/group_by.cpp
index 30e06ec..4e81245 100644
--- a/Rx/v2/test/operators/group_by.cpp
+++ b/Rx/v2/test/operators/group_by.cpp
@@ -7,7 +7,7 @@ namespace rxsc=rxcpp::schedulers;
#include "catch.hpp"
char whitespace(char c) {
- return std::isspace(c) || std::iscntrl(c);
+ return std::isspace<char>(c, std::locale::classic());
}
std::string trim(std::string s) {
@@ -21,7 +21,7 @@ std::string trim(std::string s) {
}
bool tolowerLess(char lhs, char rhs) {
- return std::tolower(lhs) < std::tolower(rhs);
+ return std::tolower(lhs, std::locale::classic()) < std::tolower(rhs, std::locale::classic());
}
bool tolowerStringLess(const std::string& lhs, const std::string& rhs) {