[ooo-build-commit] patches/dev300

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Aug 5 21:59:35 PDT 2009


 patches/dev300/apply                                     |    3 +
 patches/dev300/calc-external-ref-decode-unicode-uri.diff |   25 +++++++++++++++
 2 files changed, 28 insertions(+)

New commits:
commit c8aab92b0843d4654b24f1227dfebf9173690ffc
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Thu Aug 6 00:57:44 2009 -0400

    Decode unicode strings in external ref URIs when displaying formulas.
    
    * patches/dev300/apply:
    * patches/dev300/calc-external-ref-decode-unicode-uri.diff: patch to
      fix i#103918.

diff --git a/patches/dev300/apply b/patches/dev300/apply
index 73bf193..73914a7 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3241,6 +3241,9 @@ calc-xls-import-array-size.diff, kohei
 calc-copy-range-animated-border-sc.diff, kohei
 calc-copy-range-animated-border-svx.diff, kohei
 
+# decode unicode in external file URIs when displaying formulas.
+calc-external-ref-decode-unicode-uri.diff, i#103918, kohei
+
 [ CalcRowLimit ]
 # The work to increase Calc's row size limit, and any work associated with it.
 SectionOwner => kohei
diff --git a/patches/dev300/calc-external-ref-decode-unicode-uri.diff b/patches/dev300/calc-external-ref-decode-unicode-uri.diff
new file mode 100644
index 0000000..4c65ca2
--- /dev/null
+++ b/patches/dev300/calc-external-ref-decode-unicode-uri.diff
@@ -0,0 +1,25 @@
+diff --git sc/source/core/tool/compiler.cxx sc/source/core/tool/compiler.cxx
+index bbb62c0..6bac207 100644
+--- sc/source/core/tool/compiler.cxx
++++ sc/source/core/tool/compiler.cxx
+@@ -1062,7 +1062,7 @@ struct ConventionOOO_A1 : public Convention_A1
+             String aFile;
+             const String* p = pRefMgr->getExternalFileName(nFileId);
+             if (p)
+-                aFile = *p;
++                aFile = INetURLObject::decode(*p, INET_HEX_ESCAPE, INetURLObject::DECODE_UNAMBIGUOUS);
+             aFile.SearchAndReplaceAllAscii("'", String::CreateFromAscii("''"));
+ 
+             rBuffer.append(sal_Unicode('\''));
+@@ -1319,8 +1319,9 @@ struct ConventionXL
+ 
+         rBuffer.append(sal_Unicode('['));
+         rBuffer.append(sal_Unicode('\''));
+-        const sal_Unicode* pBuf = rFullName.GetBuffer();
+-        xub_StrLen nLen = rFullName.Len();
++        String aFullName = INetURLObject::decode(rFullName, INET_HEX_ESCAPE, INetURLObject::DECODE_UNAMBIGUOUS);
++        const sal_Unicode* pBuf = aFullName.GetBuffer();
++        xub_StrLen nLen = aFullName.Len();
+         for (xub_StrLen i = 0; i < nLen; ++i)
+         {
+             const sal_Unicode c = pBuf[i];


More information about the ooo-build-commit mailing list