Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 22:21:07 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472212 - in head/comms/quisk: . files
Message-ID:  <201806112221.w5BML74H030388@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Mon Jun 11 22:21:07 2018
New Revision: 472212
URL: https://svnweb.freebsd.org/changeset/ports/472212

Log:
  Fix unicode for 'C' locale.
  
  wxPython 3.0 uses the current locale when wx is imported to decide on the
  default text encoding.  When the locale is 'C' this means only US-ASCII is
  supported, corrupting the disaply quite badly.  As a hack, if the encoding
  is US-ASCII, force LC_ALL to en_US.UTF-8 which allows unicode to work.
  
  Reported by:	db

Added:
  head/comms/quisk/files/patch-quisk.py   (contents, props changed)
Modified:
  head/comms/quisk/Makefile

Modified: head/comms/quisk/Makefile
==============================================================================
--- head/comms/quisk/Makefile	Mon Jun 11 21:03:17 2018	(r472211)
+++ head/comms/quisk/Makefile	Mon Jun 11 22:21:07 2018	(r472212)
@@ -3,6 +3,7 @@
 
 PORTNAME=	quisk
 PORTVERSION=	4.1.3
+PORTREVISION=	1
 CATEGORIES=	comms hamradio
 MASTER_SITES=	http://james.ahlstrom.name/quisk/ \
 		LOCAL/db

Added: head/comms/quisk/files/patch-quisk.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/quisk/files/patch-quisk.py	Mon Jun 11 22:21:07 2018	(r472212)
@@ -0,0 +1,14 @@
+--- quisk.py.orig	2018-06-11 21:58:22 UTC
++++ quisk.py
+@@ -21,6 +21,11 @@ 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
++if locale.nl_langinfo(locale.CODESET) == 'US-ASCII':
++        locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
++
+ import wxversion				# Thanks to Mario, DH5YM
+ wxversion.ensureMinimal('2.8')
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806112221.w5BML74H030388>