summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-13 14:06:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-13 14:06:19 +0100
commit51054e7a8b14aa285b19b124184393d86064ad7e (patch)
treefdf7c4e0cd02f2d2210addc8228001525c7327d6 /tools
parentf14997ab1432d831ee495307b5615120fbf151b5 (diff)
bah, hidden windows-only uses of these
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/fsys.hxx4
-rw-r--r--tools/source/fsys/dirent.cxx12
2 files changed, 12 insertions, 4 deletions
diff --git a/tools/inc/tools/fsys.hxx b/tools/inc/tools/fsys.hxx
index 034b20c5ee57..fbcafefacd6b 100644
--- a/tools/inc/tools/fsys.hxx
+++ b/tools/inc/tools/fsys.hxx
@@ -342,7 +342,9 @@ public:
#ifdef UNX
return rWith.aName.CompareTo( aName );
#else
- return rWith.aName.CompareIgnoreCaseToAscii( aName );
+ rtl::OString aThis(rtl::OString(aName).toAsciiLowerCase());
+ rtl::OString aWith(rtl::OString(rWith.aName).toAsciiLowerCase());
+ return static_cast<StringCompare>(aWith.compareTo(aThis));
#endif
}
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 5f1d74353169..0e8f37ef623d 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -403,9 +403,15 @@ FSysError DirEntry::ImpParseOs2Name( const ByteString& rPfad, FSysPathStyle eSty
else
{
// liegt ein anderes Drive auf dem Stack?
- if ( aStack.Count() &&
- COMPARE_EQUAL != aStack.Bottom()->aName.CompareIgnoreCaseToAscii(aName) )
- aStack.Clear();
+ if ( aStack.Count() )
+ {
+ rtl::OString aThis(aStack.Bottom()->aName);
+ aThis = aThis.toAsciiLowerCase();
+ rtl::OString aOther(aName);
+ aOther = aOther.toAsciiLowerCase();
+ if (aThis.compareTo(aOther) != 0)
+ aStack.Clear();
+ }
// liegt jetzt nichts mehr auf dem Stack?
if ( !aStack.Count() )