#1041196 marco: Window title disappears when the first character is Chinese

Package:
marco
Source:
marco
Description:
lightweight GTK+ window manager for MATE
Submitter:
Wenbin Lv
Date:
2023-10-04 10:45:03 UTC
Severity:
normal
Tags:
#1041196#5
Date:
2023-07-15 14:40:00 UTC
From:
To:
Dear developers,

After upgrading to marco 1.26.2-1, a window's title is not displayed if
the first character of it is Chinese. Downgrading to 1.26.1-3 fixes the
problem.

The bug seems to be caused by the upstream fix to #1040752:
https://github.com/mate-desktop/marco/commit/730ed9dc454e97f569df8a92ac065a1afcc05baa

Thanks,
Wenbin Lv

#1041196#10
Date:
2023-07-15 17:33:31 UTC
From:
To:
Confirmed this bug affects 1.26.1-3+deb12u1. So the aforementioned commit
caused the problem.

Most Chinese characters are 3 bytes long under UTF-8, and UTF-8 characters
can be as long as 4 bytes. So "g_utf8_strlen (title, 2) < 1" will be true
if the first character is Chinese.

#1041196#21
Date:
2023-07-19 13:21:49 UTC
From:
To:
A fix is merged upstream, although no new release has been made yet.

https://github.com/mate-desktop/marco/pull/758/commits/4afac8d567bbedead598f213900c805ae406be04

#1041196#30
Date:
2023-10-04 10:43:21 UTC
From:
To:
Package: marco
Version: 1.26.1-3+deb12u1
Followup-For: Bug #1041196

Indeed, however the version in Bookworm manually imports the patch
creating the issue, because it's not in 1.26.1 (it's in 1.26.2 though).

So IMO this need to be patched in Bookworm, and even in unstable
waiting for a release, as it's quite problematic when having such
title-less windows.