peaclock icon indicating copy to clipboard operation
peaclock copied to clipboard

peaclock crashes on musl systems

Open kiedtl opened this issue 5 years ago • 3 comments

Peaclock crashes on my Void Linux musl system with the error:

Error: locale::facet::_S_create_c_locale name is not valid

This is because on musl systems, there is no locale.

System info peaclock 0.4.0, compiled from source.

EDIT: I was able to get it working by doing:

$ unset LANGUAGE
$ LC_ALL=C peaclock

kiedtl avatar Oct 23 '19 21:10 kiedtl

I'm glad you were able to get it working! If this is an issue that affects all musl systems, perhaps there should be a Troubleshooting section added to the README.md explaining this workaround.

octobanana avatar Sep 12 '20 02:09 octobanana

I'm do think this will be an issue with all musl-based systems, but I'm not sure. I'll test peaclock out on an Alpine box.

kiedtl avatar Sep 13 '20 17:09 kiedtl

I've tested peaclock on Alpine, and can confirm that it crashes unless LC_ALL is set to C first. It would be nice if this was mentioned in the README.

Apologies for the delayed response.

kiedtl avatar Nov 19 '20 22:11 kiedtl