From ea5a5b1dbb669415586520c2b0c526b133aa07e4 Mon Sep 17 00:00:00 2001 From: Gökhan Gurbetoğlu Date: Tue, 21 Jun 2016 11:45:30 +0300 Subject: tdf#99589 - tolower / toupper - dangerous to Turks ... Change-Id: Id3b9abd557f2b8dfc942589362452cbdb0232da9 Reviewed-on: https://gerrit.libreoffice.org/26546 Tested-by: Jenkins Reviewed-by: jan iversen --- idl/source/cmptools/hash.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'idl/source') diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx index 22faf3826d7e..fc63730b0a94 100644 --- a/idl/source/cmptools/hash.cxx +++ b/idl/source/cmptools/hash.cxx @@ -26,6 +26,8 @@ #include #include +#include + SvStringHashEntry::~SvStringHashEntry() { }; SvHashTable::SvHashTable( sal_uInt32 nMaxEntries ) @@ -121,7 +123,7 @@ sal_uInt32 SvStringHashTable::HashFunc( const OString& rElement ) const int nShift = 0; while( *pStr ) { - if( isupper( *pStr ) ) + if( rtl::isAsciiUpperCase( *pStr ) ) nHash ^= sal_uInt32(*pStr - 'A' + 26) << nShift; else nHash ^= sal_uInt32(*pStr - 'a') << nShift; -- cgit