DesktopLOKTest::testRedlineWriter is failing

Stephan Bergmann sbergman at redhat.com
Wed May 31 08:04:50 UTC 2017


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".)


More information about the LibreOffice mailing list