diff options
author | Krishna Keshav <princy.krishnakeshav@gmail.com> | 2016-05-07 01:55:23 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-05-09 09:30:27 +0000 |
commit | 26d314d2e25945941d49a4872d7ffa27cfc2fdc8 (patch) | |
tree | f6d957524d2ee3e9668f594bc0f7401b60552916 /basic | |
parent | f4604e43a653a067633c24e069b272b6309b2151 (diff) |
tdf#99589 tolower / toupper - dangerous to Turks ...
Used toAsciiUpperCase() from character.hxx
Change-Id: I79f4638866daf8952103c8a521db925150e8dcda
Reviewed-on: https://gerrit.libreoffice.org/24709
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/symtbl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basic/source/comp/symtbl.cxx b/basic/source/comp/symtbl.cxx index 94f1be350434..f7e6016aa6b1 100644 --- a/basic/source/comp/symtbl.cxx +++ b/basic/source/comp/symtbl.cxx @@ -25,6 +25,7 @@ #include <stdio.h> #include <string.h> #include <ctype.h> +#include <rtl/character.hxx> // All symbol names are laid down int the symbol-pool's stringpool, so that // all symbols are handled in the same case. On saving the code-image, the @@ -326,7 +327,7 @@ void SbiSymDef::SetType( SbxDataType t ) { ch = 'Z'; } - int ch2 = toupper( ch ); + int ch2 = rtl::toAsciiUpperCase( ch ); int nIndex = ch2 - 'A'; if (nIndex >= 0 && nIndex < N_DEF_TYPES) t = pIn->pParser->eDefTypes[nIndex]; |