diff options
author | Đoàn Trần Công Danh <[email protected]> | 2024-10-05 23:01:38 +0700 |
---|---|---|
committer | Luke from DC <[email protected]> | 2024-12-06 23:16:06 +0000 |
commit | 9fc7ea0f1495b45eb5dfc773294d3465057f6e63 (patch) | |
tree | c248c3b169a53bbfda007e2b7d99556870954dcd /applets/clock/clock.c | |
parent | e7669da07544019d71fd56f3c69634118a8b4560 (diff) | |
download | mate-panel-9fc7ea0f1495b45eb5dfc773294d3465057f6e63.tar.bz2 mate-panel-9fc7ea0f1495b45eb5dfc773294d3465057f6e63.tar.xz |
applets/clock: Fix compatibility with musl libc
%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
Diffstat (limited to 'applets/clock/clock.c')
-rw-r--r-- | applets/clock/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/clock/clock.c b/applets/clock/clock.c index f97e56af..e823d37c 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -458,7 +458,7 @@ get_updated_timeformat (ClockData *cd) /* Translators: This is a strftime format string. * It is used to display the time in 12-hours format (eg, like * in the US: 8:10 am). The %p expands to am/pm. */ - time_format = cd->showseconds ? _("%l:%M:%S %p") : _("%l:%M %p"); + time_format = cd->showseconds ? _("%_I:%M:%S %p") : _("%_I:%M %p"); else /* Translators: This is a strftime format string. * It is used to display the time in 24-hours format (eg, like |