diff --git a/i3pystatus/ping.py b/i3pystatus/ping.py index 984b832d..01b361a6 100644 --- a/i3pystatus/ping.py +++ b/i3pystatus/ping.py @@ -1,3 +1,4 @@ +import os import subprocess from i3pystatus import IntervalModule @@ -62,7 +63,7 @@ def switch_state(self): def ping_host(self): p = subprocess.Popen(["ping", "-c1", "-w%d" % self.interval, self.host], stdout=subprocess.PIPE, - stderr=subprocess.DEVNULL) + stderr=subprocess.DEVNULL, env=dict(os.environ, LC_ALL="C")) out, _ = p.communicate() if p.returncode == 0: return float(out.decode().split("\n")[1]