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>
This commit is contained in:
Krishna Keshav
2016-05-09 09:30:27 +00:00
committed by Michael Meeks
parent f4604e43a6
commit 26d314d2e2
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -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];
+2 -1
View File
@@ -29,6 +29,7 @@
#include <libxslt/xsltutils.h>
#include <osl/thread.hxx>
#include <chrono>
#include<rtl/character.hxx>
static void impl_sleep( sal_uInt32 nSec )
{
@@ -462,7 +463,7 @@ bool HelpCompiler::compile()
std::string appl = module.substr(1);
for (char & i : appl)
{
i=toupper(i);
i=rtl::toAsciiUpperCase(i);
}
xmlNodePtr docResolved = clone(xmlDocGetRootElement(docResolvedOrg), appl);
myparser aparser(documentId, fileName, title);