diff options
author | Gökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr> | 2016-06-20 17:40:13 +0300 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-06-23 09:59:49 +0000 |
commit | 9b9e5cfd2fa629b2e1dc4a193e48a4a4e8d34126 (patch) | |
tree | 61a81a6bd407cb9a06bfd8920d982ea714d63bcf /soltools | |
parent | 8ab7db320ff158949d2eadaa6e654115201ddf61 (diff) |
tdf#99589 - tolower / toupper - dangerous to Turks ...
Change-Id: I8b0fe9354232a7b60f3605fa6f90f6741f7bf683
Reviewed-on: https://gerrit.libreoffice.org/26537
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/mkdepend/collectdircontent.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/soltools/mkdepend/collectdircontent.cxx b/soltools/mkdepend/collectdircontent.cxx index 0041857ee879..c001ee05042c 100644 --- a/soltools/mkdepend/collectdircontent.cxx +++ b/soltools/mkdepend/collectdircontent.cxx @@ -1,5 +1,6 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ #include "collectdircontent.hxx" +#include <rtl/character.hxx> using namespace std; @@ -29,7 +30,7 @@ void IncludesCollection::add_to_collection(const string& dirPath) { } do { string winFileName(FindFileData.cFileName); - transform(winFileName.begin(), winFileName.end(), winFileName.begin(), ::tolower); + transform(winFileName.begin(), winFileName.end(), winFileName.begin(), rtl::toAsciiLowerCase); dirContent.insert(winFileName); } while (FindNextFile(hFind, &FindFileData)); #else @@ -51,7 +52,7 @@ void IncludesCollection::add_to_collection(const string& dirPath) { bool IncludesCollection::exists(string filePath) { #if defined(_WIN32) - transform(filePath.begin(), filePath.end(), filePath.begin(), ::tolower); + transform(filePath.begin(), filePath.end(), filePath.begin(), rtl::toAsciiLowerCase); #endif // defined( WNT ) PathFilePair dirFile = split_path(filePath); string dirPath = dirFile.first; |