diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2013-11-11 20:23:14 +0100 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2013-11-11 20:23:14 +0100 |
| commit | c72550838c983601d9f66b8c9db584c87966e6aa (patch) | |
| tree | caa8bf390c8c5ca5c6e1cff51057468b1b675c1a /py3status | |
| parent | e873ca866386a6775b042d6d4dc89b3a6c8028d5 (diff) | |
fix respect user's locale for time transformation, thx to @Edholm on issue #18
Diffstat (limited to 'py3status')
| -rwxr-xr-x | py3status/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index abd67bc..38e5e55 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -1,5 +1,6 @@ import argparse import imp +import locale import os import select import sys @@ -752,8 +753,10 @@ class Py3statusWrapper(): err = sys.exc_info()[1] self.i3_nagbar('SIGUSR1 ({})'.format(err), level='warning') + def main(): try: + locale.setlocale(locale.LC_ALL, '') py3 = Py3statusWrapper() py3.setup() except KeyboardInterrupt: |
