fix(locale): Don't localize the exec line

Fixes jaagr/lemonbuddy#56
This commit is contained in:
Michael Carlberg 2016-08-31 08:14:02 +02:00
parent 208fd2afa5
commit d3a8ccbeac
2 changed files with 3 additions and 0 deletions

View file

@ -72,6 +72,7 @@ struct Options
std::string get_geom() std::string get_geom()
{ {
std::stringstream ss; std::stringstream ss;
ss.imbue(std::locale::classic());
ss << this->width << "x" << this->height << "+"; ss << this->width << "x" << this->height << "+";
ss << this->offset_x << "+" << this->offset_y; ss << this->offset_x << "+" << this->offset_y;
return ss.str(); return ss.str();

View file

@ -237,6 +237,8 @@ std::string Bar::get_exec_line()
{ {
std::stringstream buffer; std::stringstream buffer;
buffer.imbue(std::locale::classic());
buffer << "lemonbar -p"; buffer << "lemonbar -p";
if (!this->opts->wm_name.empty()) if (!this->opts->wm_name.empty())
buffer << " -n " << this->opts->wm_name; buffer << " -n " << this->opts->wm_name;