set LC_NUMERIC=C when dumping nodes in the workspace event
Otherwise the resulting JSON might be invalid because it uses the locale-specific comma separator, e.g. "16,666" instead of "16.666".
This commit is contained in:
parent
e809bff1ab
commit
305b6ddf2f
|
@ -339,6 +339,7 @@ static void workspace_defer_update_urgent_hint_cb(EV_P_ ev_timer *w, int revents
|
|||
* current and previous workspace, in "current" and "old" respectively.
|
||||
*/
|
||||
static void ipc_send_workspace_focus_event(Con *current, Con *old) {
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
yajl_gen gen = ygenalloc();
|
||||
|
||||
y(map_open);
|
||||
|
@ -363,6 +364,7 @@ static void ipc_send_workspace_focus_event(Con *current, Con *old) {
|
|||
|
||||
ipc_send_event("workspace", I3_IPC_EVENT_WORKSPACE, (const char *)payload);
|
||||
y(free);
|
||||
setlocale(LC_NUMERIC, "");
|
||||
}
|
||||
|
||||
static void _workspace_show(Con *workspace) {
|
||||
|
|
Loading…
Reference in New Issue