[1.50] test-layout tests fail on many non-x86 architectures
While looking into updating Debian from Pango 1.48.x to 1.50.x, I'm getting test failures like this:
# Start of layout tests
# Contents don't match expected contents
# --- /tmp/.KWXIF1 2022-01-04 11:16:52.110293098 +0000
# +++ /tmp/.HVXIF1 2022-01-04 11:16:52.110293098 +0000
# @@ -15,7 +15,7 @@
# 0
# ]
# },
# - "text" : "ABC日本語ABC",
# + "text" : "ABCææèABC",
# "font" : "Noto Sans CJK JP 24",
# "wrap" : "word-char",
# "output" : {
# @@ -154,7 +154,7 @@
# {
# "offset" : 3,
# "length" : 9,
# - "text" : "日本語",
# + "text" : "ææè",
# "bidi-level" : 0,
# "gravity" : "east",
# "language" : "xx",
#
not ok 1 /layout/vertical.layout
This appears to be a bug in Pango's JSON serializer when run on architectures where char is unsigned, such as the ARM and PowerPC families. MR to follow.
I think this is only a test failure and not indicative of a bug in the functionally necessary parts of Pango, because the serializer is (currently?) only used for tests?
Edited by Simon McVittie