Re-add unicode fix lost in r502312
This commit is contained in:
parent
9579a58810
commit
4785ca7513
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504508
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= quisk
|
||||
DISTVERSION= 4.1.40
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= comms hamradio
|
||||
MASTER_SITES= CHEESESHOP
|
||||
|
||||
|
16
comms/quisk/files/patch-quisk.py
Normal file
16
comms/quisk/files/patch-quisk.py
Normal file
@ -0,0 +1,16 @@
|
||||
--- quisk.py.orig 2019-06-18 23:38:53 UTC
|
||||
+++ quisk.py
|
||||
@@ -23,6 +23,13 @@ os.chdir(os.path.normpath(os.path.dirnam
|
||||
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.setlocale(locale.LC_ALL, '')
|
||||
+cloc = locale.getdefaultlocale()
|
||||
+if locale.nl_langinfo(locale.CODESET) != 'UTF-8':
|
||||
+ locale.setlocale(locale.LC_ALL, (cloc[0], 'UTF-8'))
|
||||
+
|
||||
import wx, wx.html, wx.lib.stattext, wx.lib.colourdb, wx.grid, wx.richtext
|
||||
import math, cmath, time, traceback, string, select, subprocess
|
||||
import threading, pickle, webbrowser
|
Loading…
Reference in New Issue
Block a user