Bug 411520

Summary: musl based system: no time and date is shown
Product: [Plasma] plasmashell Reporter: Bart Ribbers <bribbers>
Component: Digital ClockAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: alexey.min, kde
Priority: NOR    
Version: 5.16.4   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot showing the issue

Description Bart Ribbers 2019-09-02 10:37:32 UTC
Created attachment 122453 [details]
Screenshot showing the issue

SUMMARY

The widget appears completely empty in the panel, it's just a blank spot. When clicking on it to show the calendar, all values that should normally contain date or time strings are empty. See the attached screenshot.

STEPS TO REPRODUCE
1. Get a Musl based system like Alpine Linux or Gentoo Musl
2. Enable the digital clock widget

OBSERVED RESULT

Widget is completely empty in the panel, all date and time strings in the opened widget are gone.

EXPECTED RESULT

Widget to show the date and time normally, and have a working calendar when opened.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 4.19.68
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION

The system is Musl based and has no locale support because of it (that's a glibc thing).
Comment 1 David Edmundson 2019-09-02 10:48:58 UTC
Please run 

"ls -l /etc/localtime" and paste the full result
Comment 2 Bart Ribbers 2019-09-02 13:01:37 UTC
Thanks for your quick response!

▶ ls -l /etc/localtime
lrwxrwxrwx 1 root root 30 Jul  1 17:19 /etc/localtime -> /etc/zoneinfo/Europe/Amsterdam
Comment 3 Alexey Min 2019-09-04 14:27:02 UTC
> has no locale support

What is this then? https://git.musl-libc.org/cgit/musl/tree/src/locale

Needs some more minimal example to reproduce, what was it, "plasmaengineexplorer time" from plasma-sdk?
Comment 4 Bart Ribbers 2019-09-07 19:57:20 UTC
There might be some support for it in the source, but I meant there is no `locale` command like glibc has.

I'm not sure what you want to know from `plasmaengineexplorer time`? It says there are 41 data sources, and selecting "time" in the dropdown makes several timezones show (UTC-14:00 to UTC+14:00 and "Local").
Comment 5 David Edmundson 2019-09-09 13:03:39 UTC
https://codereview.qt-project.org/c/qt/qtbase/+/273335