[Libreoffice-commits] core.git: unoxml/qa

Stephan Bergmann sbergman at redhat.com
Fri Sep 20 05:14:07 PDT 2013


 unoxml/qa/complex/unoxml/DOMTest.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 89e5ef948564d4bcea02c845d6f959dddd99129c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Sep 20 14:13:49 2013 +0200

    java.lang.String.getBytes() has platform-dependent semantics
    
    Change-Id: Ia36e73215f666a26e5898310aabefb68d3f695c2

diff --git a/unoxml/qa/complex/unoxml/DOMTest.java b/unoxml/qa/complex/unoxml/DOMTest.java
index 9191781..8cd93da 100644
--- a/unoxml/qa/complex/unoxml/DOMTest.java
+++ b/unoxml/qa/complex/unoxml/DOMTest.java
@@ -2706,7 +2706,7 @@ public class DOMTest
             "<xlink:test/>" +
             "<office:automatic-styles teststyle=\"test\"/>" +
             "<moretest/>" +
-            "some text \303\266\303\244\303\274" +
+            "some text \uC3B6\uC3A4\uC3BC" +
             "</office:document-content>";
 
         XDocumentBuilder xBuilder =
@@ -2714,7 +2714,7 @@ public class DOMTest
             m_xMSF.createInstance("com.sun.star.xml.dom.DocumentBuilder"));
 
         XInputStream xIn =
-            SequenceInputStream.createStreamFromSequence(m_xContext, file.getBytes());
+            SequenceInputStream.createStreamFromSequence(m_xContext, file.getBytes("UTF-8"));
 
         XDocument xDoc =
             xBuilder.parse(xIn);


More information about the Libreoffice-commits mailing list