[Libreoffice-commits] core.git: idl/source

apurvapriyadarshi apriyadarshi.1995 at gmail.com
Mon May 30 08:49:35 UTC 2016


 idl/source/cmptools/lex.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2b99f832dc611355eedace357cd50d976723d1dd
Author: apurvapriyadarshi <apriyadarshi.1995 at gmail.com>
Date:   Fri May 27 23:49:01 2016 +0530

    tdf#99589 tolower / toupper - dangerous to Turks ...
    
    Converted toupper to toAsciiUpperCase
    
    Change-Id: I595e39bd00a15ede6fc9ea3da3c2a4b2a2322a82
    Reviewed-on: https://gerrit.libreoffice.org/25566
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index 82b3c9e..6084489 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -23,6 +23,7 @@
 #include <lex.hxx>
 #include <globals.hxx>
 #include <rtl/strbuf.hxx>
+#include<rtl/character.hxx>
 
 OString SvToken::GetTokenAsString() const
 {
@@ -172,7 +173,7 @@ sal_uLong SvTokenStream::GetNumber()
             if( isdigit( c ) )
                 l = l * nLog + (c - '0');
             else
-                l = l * nLog + (toupper( c ) - 'A' + 10 );
+                l = l * nLog + (rtl::toAsciiUpperCase( c ) - 'A' + 10 );
             c = GetFastNextChar();
         }
     }


More information about the Libreoffice-commits mailing list