From owner-freebsd-x11@freebsd.org Mon Mar 19 08:44:54 2018 Return-Path: Delivered-To: freebsd-x11@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 B726EF5C4A6 for ; Mon, 19 Mar 2018 08:44:54 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from smtp-nf-201.his.com (smtp-nf-201.his.com [216.194.196.93]) by mx1.freebsd.org (Postfix) with ESMTP id 43781833E4 for ; Mon, 19 Mar 2018 08:44:53 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from cuda201.his.com (cuda201.his.com [216.194.196.22]) by smtp-nf-201.his.com (Postfix) with ESMTPS id 50F5A6013F for ; Mon, 19 Mar 2018 04:44:50 -0400 (EDT) X-ASG-Debug-ID: 1521449046-061c4115333abda0001-0Qlll1 Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.196.20]) by cuda201.his.com with ESMTP id 3wKtVFxLNgFUsFTA; Mon, 19 Mar 2018 04:44:06 -0400 (EDT) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.196.20 Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by smtp-nf-202.his.com (Postfix) with ESMTP id E3FAD600AB; Mon, 19 Mar 2018 04:44:03 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail-sterling.his.com (Postfix) with ESMTP id A9F623F80001; Mon, 19 Mar 2018 04:44:03 -0400 (EDT) X-Barracuda-RBL-Trusted-Forwarder: 216.194.248.141 Received: from mail-sterling.his.com ([127.0.0.1]) by localhost (mail-sterling.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1AP5MFCbVnp5; Mon, 19 Mar 2018 04:43:59 -0400 (EDT) Received: from prl-debian8-64.jexium-island.net (static-71-246-219-82.washdc.fios.verizon.net [71.246.219.82]) by mail-sterling.his.com (Postfix) with ESMTPSA id 5F4D54170007; Mon, 19 Mar 2018 04:43:59 -0400 (EDT) Received: from tom by prl-debian8-64.jexium-island.net with local (Exim 4.84_2) (envelope-from ) id 1exqOa-0000rl-VZ; Mon, 19 Mar 2018 04:43:57 -0400 X-Barracuda-RBL-IP: 71.246.219.82 X-Barracuda-Effective-Source-IP: static-71-246-219-82.washdc.fios.verizon.net[71.246.219.82] X-Barracuda-Apparent-Source-IP: 71.246.219.82 Date: Mon, 19 Mar 2018 04:43:56 -0400 From: Thomas Dickey To: Bob Willcox Cc: freebsd-x11@freebsd.org Subject: Re: xterm displaying two chars for one, 2nd looks to be a space Message-ID: <20180319084356.GA3215@prl-debian8-64.jexium-island.net> X-ASG-Orig-Subj: Re: xterm displaying two chars for one, 2nd looks to be a space Reply-To: dickey@his.com References: <20180318140337.GM71303@rancor.immure.com> <20180318142259.GA5224@prl-debian8-64.jexium-island.net> <20180318202433.GN71303@rancor.immure.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uAKRQypu60I7Lcqm" Content-Disposition: inline In-Reply-To: <20180318202433.GN71303@rancor.immure.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Barracuda-Connect: smtp-nf-202.his.com[216.194.196.20] X-Barracuda-Start-Time: 1521449046 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-Scan-Msg-Size: 3263 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.49096 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 08:44:54 -0000 --uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 18, 2018 at 03:24:33PM -0500, Bob Willcox wrote: > On Sun, Mar 18, 2018 at 10:22:59AM -0400, Thomas Dickey wrote: > > On Sun, Mar 18, 2018 at 09:03:37AM -0500, Bob Willcox wrote: > > > Hi All, > > >=20 > > > I just did an new install of the latest Freebsd 12.0-CURRENT: > > >=20 > > > FreeBSD anakin.immure.com 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r33111= 5: Sun Mar 18 06:58:19 CDT 2018 bob@anakin.immure.com:/usr/obj/usr/src/= amd64.amd64/sys/ANIKIN amd64 > > >=20 > > > and have installed xorg-7.7_3. My window manager is ctwm-4.0.1,1 and = xterm is > > > xterm-331. > > >=20 > > > Now for my problem: when I start up an xterm in X from ctwm I get two > > > characters for every one entered, with the second one being a space. > > >=20 > > > For example, when typing in hello in an xterm window it displays as > > >=20 > > > h e l l o > >=20 > > It could do that if the font-metrics say it's that wide, even if (almos= t) > > none of the glyphs actually say that. >=20 > Thanks for your reply Thomas, but I'm afraid I'm not following what you s= ay > here. I'm not not very familiar with fonts so I'm confused by your commen= t "if > the font-metrics say it's that wide". >=20 > Note that I've been using the same xinitrc, Xdefaults, and ctwmrc files s= ince > the mid '90s and have never had this behavior. I was referring to the fact that besides xterm, there are other components which can produce the problem (the font files, the libraries reading the font files and the locale support). FreeBSD's had problems with locale support for quite a while, plus freetype2 has made changes. But "font metrics" refers to the size of the glyphs in a font-file which are stored in its header (and which freetype2 and/or fontconfig can (mis)interpret). =20 > > > However, if I specify a font with '-fn 10x20' on the xterm invocation= I don't > > > get the gratuitous spaces. > >=20 > > that's consistent with my remark above. > >=20 > > Also, it's possible (I suppose) that the change to use Unicode 10 > > last spring is aggravating the problem, but I'd have to study an > > example to see exactly why. >=20 > Is there some way that I could revert that change or configure xterm to > not use it? I took a quick look for "downgrade freebsd package", and didn't see anything obvious. For development, I've adapted the port-files from FreeBSD in xter= m's sources, and have used those in my ports tree. So what I'd do to get/test and older version of xterm would be to tweak the PORTVERSION in the Makefile (and checksums) using /usr/ports/x11/xterm as a starting point. Something like cd /usr/ports/x11/xterm sudo make to get the dist-files for the current version on the disk, then copy the version of "xterm-XXX.tgz" from ftp://ftp.invisible-island.net/xterm/ to cd /usr/ports/distfiles and sudo vi Makefile to change the PORTVERSION number, and referring to https://www.freebsd.org/doc/en/books/porters-handbook/porting-checksum.html sudo make makesum sudo make clean sudo make sudo make install The change to use Unicode 10 was in xterm #330, so you might consider #329. --=20 Thomas E. Dickey https://invisible-island.net ftp://ftp.invisible-island.net --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlqveEwACgkQcCNT4PfkjtuT8ACginiIzy6sTUq1nFjWHS2IaSpX mdgAniDGmTr/RCTQW/WnVxkPK2r3CXUy =W/zy -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--