summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-31 09:54:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-31 09:59:27 +0200
commit92be65d31103827bdbd82801ea203a504dce5316 (patch)
treeeeae8406c0c6d7a5e0b451959a3313004b5c3976 /desktop
parentNo need for additional pDlg variable (diff)
downloadcore-92be65d31103827bdbd82801ea203a504dce5316.tar.gz
core-92be65d31103827bdbd82801ea203a504dce5316.zip
Avoid implementation-defined behavior when mapping non-ASCII characters
...into the basic source character set (translation phase 1) and then into the execution character set (translation phase 5). Change-Id: I3d40bb9c2a64bc62c04db0fbe09408b1911893c8
Diffstat (limited to 'desktop')
-rw-r--r--desktop/qa/desktop_lib/test_desktop_lib.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx
index 6862dfc0ccd6..752f2d445855 100644
--- a/desktop/qa/desktop_lib/test_desktop_lib.cxx
+++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx
@@ -1662,7 +1662,9 @@ void DesktopLOKTest::testRedlineWriter()
for (boost::property_tree::ptree::value_type& rRedline : aTree.get_child("redlines"))
// This failed with boost::property_tree::ptree_bad_path, as there were no description field.
- CPPUNIT_ASSERT_EQUAL(std::string("Insert “t”"), rRedline.second.get<std::string>("description"));
+ CPPUNIT_ASSERT_EQUAL(std::string("Insert \xE2\x80\x9Ct\xE2\x80\x9D"), rRedline.second.get<std::string>("description"));
+ // U+201C LEFT DOUBLE QUOTATION MARK, U+201D RIGHT DOUBLE QUOTATION
+ // MARK
comphelper::LibreOfficeKit::setActive(false);
}