From 7d7e2ff77515b3afd7d544c79698de9877aa7334 Mon Sep 17 00:00:00 2001 From: zlax Date: Sun, 12 Jun 2022 16:20:59 +0300 Subject: [PATCH] py2 curses utf8 display support --- setup.py | 2 +- sshch/sshch | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index dc56ba8..e793d18 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def main(): long_description='SSH connection and aliases manager with curses and command line interface', long_description_content_type='text/x-rst', license='DWTWL 2.55', - version='1.09.1', + version='1.09.2', py_modules=['sshch'], scripts=['sshch/sshch'], keywords='sshch ssh aliases curses manager', diff --git a/sshch/sshch b/sshch/sshch index 409c709..dbead64 100755 --- a/sshch/sshch +++ b/sshch/sshch @@ -7,6 +7,8 @@ try: import configparser except ImportError: import ConfigParser as configparser # Python 2.x import + import locale + locale.setlocale(locale.LC_ALL, '') from os import path from sys import argv from math import ceil @@ -20,7 +22,7 @@ from curses import textpad, panel from threading import Thread # https://gitlab.com/zlax/sshch -version = "1.09.1" +version = "1.09.2" # expand groups by default expand_default = True # path to conf dir and file, default: ~/.config/sshch.conf