mate-desktop / mate-panel

MATE panel
https://mate-desktop.org
GNU General Public License v2.0
185 stars 118 forks source link

applets/clock: Fix compatibility with musl libc #1452

Open sgn opened 1 month ago

sgn commented 1 month ago

%l is an glibc extension for strftime, this extensions isn't supported by musl libc.

Replace %l with %_I, which is functionaly equivalence. %_I itself is also an extensions, however, %_I is supported by both glibc, musl, FreeBSD and deriviates, AIX, and Solaris.

Fix: #1451

lukefromdc commented 1 month ago

I cannot test this except for breaking changes with glibc, we don't have musl libc on Debian Unstable

sgn commented 1 month ago

Does it break for glibc? We have musl over here, and it seems to work correctly.

lukefromdc commented 1 month ago

I can test under libglibc when I get home