Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2018 04:43:56 -0400
From:      Thomas Dickey <dickey@his.com>
To:        Bob Willcox <bob@immure.com>
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>
In-Reply-To: <20180318202433.GN71303@rancor.immure.com>
References:  <20180318140337.GM71303@rancor.immure.com> <20180318142259.GA5224@prl-debian8-64.jexium-island.net> <20180318202433.GN71303@rancor.immure.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <dickey@invisible-island.net>
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--



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