summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorGökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr>2016-06-20 17:40:13 +0300
committerjan iversen <jani@documentfoundation.org>2016-06-23 09:59:49 +0000
commit9b9e5cfd2fa629b2e1dc4a193e48a4a4e8d34126 (patch)
tree61a81a6bd407cb9a06bfd8920d982ea714d63bcf /basic
parent8ab7db320ff158949d2eadaa6e654115201ddf61 (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 'basic')
-rw-r--r--basic/source/sbx/sbxvar.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index 0977c7449d02..8ed87aed644b 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -30,6 +30,7 @@
#include "sbunoobj.hxx"
#include <math.h>
#include <ctype.h>
+#include <rtl/character.hxx>
#include <com/sun/star/uno/XInterface.hpp>
using namespace com::sun::star::uno;
@@ -350,7 +351,7 @@ sal_uInt16 SbxVariable::MakeHashCode( const OUString& rName )
{
return 0;
}
- n = sal::static_int_cast< sal_uInt16 >( ( n << 3 ) + toupper( c ) );
+ n = sal::static_int_cast< sal_uInt16 >( ( n << 3 ) + rtl::toAsciiUpperCase( c ) );
}
return n;
}