summaryrefslogtreecommitdiff
path: root/sdext
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 /sdext
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 'sdext')
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index 48e3924ef90d..4db5b3149ba1 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -69,6 +69,8 @@
#include "rtl/bootstrap.h"
+#include <rtl/character.hxx>
+
using namespace com::sun::star;
namespace pdfi
@@ -469,8 +471,8 @@ sal_Int32 Parser::parseFontCheckForString(
if (nCopyLen < nAttribLen)
return 0;
for (sal_Int32 i = 0; i < nAttribLen; ++i)
- if (tolower(pCopy[i]) != pAttrib[i]
- && toupper(pCopy[i]) != pAttrib[i])
+ if (rtl::toAsciiLowerCase(pCopy[i]) != rtl::toAsciiLowerCase(pAttrib[i])
+ && rtl::toAsciiUpperCase(pCopy[i]) != rtl::toAsciiLowerCase(pAttrib[i]))
return 0;
rResult.isItalic |= bItalic;
rResult.isBold |= bBold;