diff --git a/include/bar.hpp b/include/bar.hpp index efe83e92..c2b58ffd 100644 --- a/include/bar.hpp +++ b/include/bar.hpp @@ -72,6 +72,7 @@ struct Options std::string get_geom() { std::stringstream ss; + ss.imbue(std::locale::classic()); ss << this->width << "x" << this->height << "+"; ss << this->offset_x << "+" << this->offset_y; return ss.str(); diff --git a/src/bar.cpp b/src/bar.cpp index ada2e3e9..9e1261ae 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -237,6 +237,8 @@ std::string Bar::get_exec_line() { std::stringstream buffer; + buffer.imbue(std::locale::classic()); + buffer << "lemonbar -p"; if (!this->opts->wm_name.empty()) buffer << " -n " << this->opts->wm_name;