Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.7k stars 710 forks source link

The clock disappears #3643

Open yamadharma opened 1 month ago

yamadharma commented 1 month ago

Error after start waybar:

[error] clock: ios_base::clear: unspecified iostream_category error
suoyuan666 commented 1 month ago

I also encountered this problem when using Gentoo Linux + LLVM profile. This is a problem with dev-libs/date. I tried to submit a PR to gentoo. You can use the following patch

diff --git a/src/tz.cpp b/src/tz.cpp
index 89a08fd..872d262 100644
--- a/src/tz.cpp
+++ b/src/tz.cpp
@@ -603,6 +604,7 @@ static
std::string
get_alpha_word(std::istream& in)
{
+ std::ws(in);
std::string s;
while (!in.eof() && std::isalpha(in.peek()))
s.push_back(static_cast<char>(in.get()));
yamadharma commented 1 month ago

Thank you! This solved the problem.