Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On 05/31/2017 08:17 AM, David Ostrovsky wrote:
Test name: DesktopLOKTest::testRedlineWriter
equality assertion failed
- Expected: Insert “t”
- Actual  : Insert t

When i adapt the code to be: [1] and print out the actual
values in gdb, I'm getting:

(gdb) print first
$1 = {static npos = <optimized out>, _M_dataplus =
{<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data
fields>}, <No data fields>}, _M_p = 0x1b12378 "Insert “t”"}}

(gdb) print second
$3 = {static npos = <optimized out>, _M_dataplus =
{<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data
fields>}, <No data fields>}, _M_p = 0x14e91b8 "Insert
\177\177\177t\177\177\177"}}

Some issue with the locale you've set? (The usage of U+201C LEFT DOUBLE QUOTATION MARK and U+201D RIGHT DOUBLE QUOTATION MARK in desktop/qa/desktop_lib/test_desktop_lib.cxx was rather brittle, so I've fixed that now with <https://cgit.freedesktop.org/libreoffice/core/commit/?id=92be65d31103827bdbd82801ea203a504dce5316> "Avoid implementation-defined behavior when mapping non-ASCII characters".)

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.