Fix typo of locale.setlocal which should be locale.setlocale

Pointy hat to:	@shurd
This commit is contained in:
Diane Bruce 2018-06-17 14:42:24 +00:00
parent bc2f9d5e38
commit 62aa0c3ef5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472607
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= quisk
PORTVERSION= 4.1.3
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= comms hamradio
MASTER_SITES= http://james.ahlstrom.name/quisk/ \
LOCAL/db

View file

@ -1,12 +1,12 @@
--- quisk.py.orig 2016-11-30 18:26:59 UTC
+++ quisk.py
@@ -21,6 +21,13 @@ os.chdir(os.path.normpath(os.path.dirnam
--- quisk.py.orig 2016-11-30 13:26:59.000000000 -0500
+++ quisk.py 2018-06-17 10:30:03.031192000 -0400
@@ -21,6 +21,13 @@
if sys.path[0] != "'.'": # Make sure the current working directory is on path
sys.path.insert(0, '.')
+# Hack to ensure unicode is available.
+import locale
+locale.setlocal(locale.LC_ALL, '')
+locale.setlocale(locale.LC_ALL, '')
+cloc = locale.getdefaultlocale()
+if locale.nl_langinfo(locale.CODESET) != 'UTF-8':
+ locale.setlocale(locale.LC_ALL, (cloc[0], 'UTF-8'))