Kaydet (Commit) 7a117638 authored tarafından krishna keshav's avatar krishna keshav Kaydeden (comit) Caolán McNamara

tdf#99589 tolower / toupper - dangerous to Turks ...

used 'toAsciiUpperCase()' and 'isAsciiUpperCase()' from rtl/character.hxx

Change-Id: Iafbf97c4e2f026443411cf080ba2f0872b726bbe
Reviewed-on: https://gerrit.libreoffice.org/25877Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 279f1a20
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <tools/urlobj.hxx> #include <tools/urlobj.hxx>
#include <osl/file.hxx> #include <osl/file.hxx>
#include <unotools/pathoptions.hxx> #include <unotools/pathoptions.hxx>
#include<rtl/character.hxx>
#include <com/sun/star/awt/KeyModifier.hpp> #include <com/sun/star/awt/KeyModifier.hpp>
#include <svtools/acceleratorexecute.hxx> #include <svtools/acceleratorexecute.hxx>
...@@ -630,8 +631,8 @@ sal_uInt16 parseChar( char c ) throw ( uno::RuntimeException ) ...@@ -630,8 +631,8 @@ sal_uInt16 parseChar( char c ) throw ( uno::RuntimeException )
// do we care about locale here for isupper etc. ? probably not // do we care about locale here for isupper etc. ? probably not
if ( isalpha( c ) ) if ( isalpha( c ) )
{ {
nVclKey |= ( toupper( c ) - 'A' ) + KEY_A; nVclKey |= ( rtl::toAsciiUpperCase( c ) - 'A' ) + KEY_A;
if ( isupper( c ) ) if ( rtl::isAsciiUpperCase( c ) )
nVclKey |= KEY_SHIFT; nVclKey |= KEY_SHIFT;
} }
else if ( isdigit( c ) ) else if ( isdigit( c ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment