summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorGökhan Gurbetoğlu <gokhan.gurbetoglu@pardus.org.tr>2016-06-21 11:45:30 +0300
committerjan iversen <jani@documentfoundation.org>2016-06-23 10:01:18 +0000
commitea5a5b1dbb669415586520c2b0c526b133aa07e4 (patch)
treeaa75c3b4737c8fa2690e3c4ba29e3a3c56d7e0e8 /writerfilter
parent9b9e5cfd2fa629b2e1dc4a193e48a4a4e8d34126 (diff)
tdf#99589 - tolower / toupper - dangerous to Turks ...
Change-Id: Id3b9abd557f2b8dfc942589362452cbdb0232da9 Reviewed-on: https://gerrit.libreoffice.org/26546 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/rtftok/rtftokenizer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtftokenizer.cxx b/writerfilter/source/rtftok/rtftokenizer.cxx
index 2dab78922af1..83ecf695f7b4 100644
--- a/writerfilter/source/rtftok/rtftokenizer.cxx
+++ b/writerfilter/source/rtftok/rtftokenizer.cxx
@@ -12,6 +12,7 @@
#include <vcl/svapp.hxx>
#include <rtl/strbuf.hxx>
#include <rtfskipdestination.hxx>
+#include <rtl/character.hxx>
#include <com/sun/star/io/BufferSizeExceededException.hpp>
using namespace com::sun::star;
@@ -169,7 +170,7 @@ int RTFTokenizer::asHex(char ch)
ret = ch - '0';
else
{
- if (islower(ch))
+ if (rtl::isAsciiLowerCase(ch))
{
if (ch < 'a' || ch > 'f')
return -1;