diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-09-06 14:26:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-09-06 14:26:41 +0200 |
commit | 75205dd307c57df24d282b94f1bca3b668579c1e (patch) | |
tree | 0e9af30ffee9bb99df557909a01dba008c1d0fb2 /cutl/fs/path.txx | |
parent | 1801a430cd5059b1220b48a1ecd58f0bbee7e4b6 (diff) |
Do not low-case paths in normalize() for Win32
Instead, do case-insensitive comparison. Also handle separators
while at it.
Diffstat (limited to 'cutl/fs/path.txx')
-rw-r--r-- | cutl/fs/path.txx | 8 |
1 files changed, 1 insertions, 7 deletions
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; } |