From owner-svn-ports-head@freebsd.org Mon Jun 11 22:21:08 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8F71E1005118; Mon, 11 Jun 2018 22:21:08 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4288281965; Mon, 11 Jun 2018 22:21:08 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2505521715; Mon, 11 Jun 2018 22:21:08 +0000 (UTC) (envelope-from shurd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5BML8EF030391; Mon, 11 Jun 2018 22:21:08 GMT (envelope-from shurd@FreeBSD.org) Received: (from shurd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5BML74H030388; Mon, 11 Jun 2018 22:21:07 GMT (envelope-from shurd@FreeBSD.org) Message-Id: <201806112221.w5BML74H030388@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: shurd set sender to shurd@FreeBSD.org using -f From: Stephen Hurd Date: Mon, 11 Jun 2018 22:21:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472212 - in head/comms/quisk: . files X-SVN-Group: ports-head X-SVN-Commit-Author: shurd X-SVN-Commit-Paths: in head/comms/quisk: . files X-SVN-Commit-Revision: 472212 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2018 22:21:08 -0000 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') +