From 75205dd307c57df24d282b94f1bca3b668579c1e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 6 Sep 2014 14:26:41 +0200 Subject: Do not low-case paths in normalize() for Win32 Instead, do case-insensitive comparison. Also handle separators while at it. --- cutl/fs/path.txx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'cutl/fs/path.txx') diff --git a/cutl/fs/path.txx b/cutl/fs/path.txx index e95c890..8939665 100644 --- a/cutl/fs/path.txx +++ b/cutl/fs/path.txx @@ -182,15 +182,9 @@ namespace cutl for (typename paths::const_iterator i (r.begin ()), e (r.end ()); i != e;) { -#ifdef _WIN32 - for (size_type j (0), n (i->size ()); j < n; ++j) - p += tolower ((*i)[j]); -#else p += *i; -#endif - ++i; - if (i != e) + if (++i != e) p += traits::directory_separator; } -- cgit v1.1