[Libreoffice-commits] .: Branch 'libreoffice-3-6' - tools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 5 00:20:17 PST 2012


 tools/source/fsys/urlobj.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit eb64c9d69ea7c2677773e7a29634148151102bb7
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Mon Oct 29 14:19:35 2012 +0400

    fdo#56366: INetURLObject::decode: do not clip utf-32 to 16-bit
    
    Change-Id: Iaedc9f5b9f25f43b8b8deaf28129423abbb91672
    (cherry picked from commit cda6b4e991f45ec870a311ab736038bd93227900)
    
    Signed-off-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index eb125fe..eadc6ab 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -3783,7 +3783,7 @@ rtl::OUString INetURLObject::decode(sal_Unicode const * pBegin,
         switch (eEscapeType)
         {
             case ESCAPE_NO:
-                aResult.append(sal_Unicode(nUTF32));
+                aResult.appendUtf32(nUTF32);
                 break;
 
             case ESCAPE_OCTET:
@@ -3805,7 +3805,7 @@ rtl::OUString INetURLObject::decode(sal_Unicode const * pBegin,
                     appendEscape(aResult, cEscapePrefix, nUTF32);
                 }
                 else
-                    aResult.append(sal_Unicode(nUTF32));
+                    aResult.appendUtf32(nUTF32);
                 break;
         }
     }


More information about the Libreoffice-commits mailing list