diff options
author | krishna keshav <princy.krishnakeshav@gmail.com> | 2016-06-03 22:13:35 +0530 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-07 09:24:56 +0000 |
commit | 7a11763823eef04e9602c7de3fff44415061d7cb (patch) | |
tree | 3121e02873581fff0fb04a467e39943deca1dbe3 /filter | |
parent | tdf#50821 RTF import: fix handling of \trpaddf{b,l,r,t} (diff) | |
download | core-7a11763823eef04e9602c7de3fff44415061d7cb.tar.gz core-7a11763823eef04e9602c7de3fff44415061d7cb.zip |
tdf#99589 tolower / toupper - dangerous to Turks ...
used 'toAsciiUpperCase()' and 'isAsciiUpperCase()' from rtl/character.hxx
Change-Id: Iafbf97c4e2f026443411cf080ba2f0872b726bbe
Reviewed-on: https://gerrit.libreoffice.org/25877
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msvbahelper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/msfilter/msvbahelper.cxx b/filter/source/msfilter/msvbahelper.cxx index a06eb5ceb1fc..49e6190b291c 100644 --- a/filter/source/msfilter/msvbahelper.cxx +++ b/filter/source/msfilter/msvbahelper.cxx @@ -34,6 +34,7 @@ #include <tools/urlobj.hxx> #include <osl/file.hxx> #include <unotools/pathoptions.hxx> +#include<rtl/character.hxx> #include <com/sun/star/awt/KeyModifier.hpp> #include <svtools/acceleratorexecute.hxx> @@ -630,8 +631,8 @@ sal_uInt16 parseChar( char c ) throw ( uno::RuntimeException ) // do we care about locale here for isupper etc. ? probably not if ( isalpha( c ) ) { - nVclKey |= ( toupper( c ) - 'A' ) + KEY_A; - if ( isupper( c ) ) + nVclKey |= ( rtl::toAsciiUpperCase( c ) - 'A' ) + KEY_A; + if ( rtl::isAsciiUpperCase( c ) ) nVclKey |= KEY_SHIFT; } else if ( isdigit( c ) ) |