diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-31 09:54:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-31 09:59:27 +0200 |
commit | 92be65d31103827bdbd82801ea203a504dce5316 (patch) | |
tree | eeae8406c0c6d7a5e0b451959a3313004b5c3976 /desktop/qa | |
parent | 82fa13614caf183c4c318b03e8ba4dae498c6f0c (diff) |
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/qa')
-rw-r--r-- | desktop/qa/desktop_lib/test_desktop_lib.cxx | 4 |
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); } |