From owner-freebsd-current@FreeBSD.ORG Tue Jun 27 20:56:21 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51E0516A553 for ; Tue, 27 Jun 2006 20:56:21 +0000 (UTC) (envelope-from jr@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26EB8454C0 for ; Tue, 27 Jun 2006 19:53:52 +0000 (GMT) (envelope-from jr@opal.com) Received: from 118.79.171.66.subscriber.vzavenue.net (HELO linwhf.opal.com) ([66.171.79.118]) by smtp.vzavenue.net with ESMTP; 27 Jun 2006 15:53:47 -0400 X-REPUTATION: -0.7 X-REMOTE-IP: 66.171.79.118 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.06,183,1149480000"; d="scan'208"; a="39210056:sNHT18405297" Received: from linwhf.opal.com (localhost [127.0.0.1]) by linwhf.opal.com (8.13.6/8.13.6) with ESMTP id k5RJrkB5059438 for ; Tue, 27 Jun 2006 15:53:46 -0400 (EDT) (envelope-from jr@opal.com) Received: from 127.0.0.1 ([127.0.0.1] helo=linwhf.opal.com) by ASSP-nospam; 27 Jun 2006 15:53:46 -0400 Received: (from jr@localhost) by linwhf.opal.com (8.13.6/8.13.6/Submit) id k5RJrjeB059437 for freebsd-current@freebsd.org; Tue, 27 Jun 2006 15:53:45 -0400 (EDT) (envelope-from jr) Date: Tue, 27 Jun 2006 15:53:45 -0400 From: "J.R. Oldroyd" To: freebsd-current@freebsd.org Message-ID: <20060627195345.GJ45513@linwhf.opal.com> References: <20060625221640.GI48766@linwhf.opal.com> <20060626014939.GA74292@over-yonder.net> <20060626115840.vrmox3wo0gg08gog@netchild.homeip.net> <20060626124158.GA7801@mail.scottro.net> <20060626191808.GC74292@over-yonder.net> <20060626235439.GA11403@saltmine.radix.net> <20060627005305.GE8825@linwhf.opal.com> <20060627005849.GA3672@saltmine.radix.net> <20060627012109.GK74292@over-yonder.net> <20060627031454.GB45513@linwhf.opal.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7CZp05NP8/gJM8Cl" Content-Disposition: inline In-Reply-To: <20060627031454.GB45513@linwhf.opal.com> User-Agent: Mutt/1.4.2.1i Subject: Re: Unicode (was Re: Updating ncurses in base) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2006 20:56:21 -0000 --7CZp05NP8/gJM8Cl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jun 26, 23:14, J.R. Oldroyd wrote: >=20 > [ stuff about the lcctype.patch ] ... I'm impressed at the number of downloads this patch is getting. Obviously there's plenty of interest in this topic. Folk who use the hexdump(1)/od(1) utility (in particular "od -c") to examine files will encounter a problem after applying the lcctype.patch. There's an assert check in hexdump/conv.c:137 that verifies that the character has (width > 0). This assertion is no longer valid once you've listed bunches of characters with SWIDTH0. If you run "od -c" on a file containing utf-8 combining characters, the assert test will fail causing od to dump core. I also have a patch for this and this patch is now documented here: http://opal.com/freebsd/unicode.html#hexdump Enjoy, -jr --7CZp05NP8/gJM8Cl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iQDVAwUBRKGMyUkkqUax7f6FAQJrIAYAuaovQa7ZTxnSJLjU0o78rgky2XS3f/Ju CQ+Nhig9WsngcLoUQID9CRB/gStE91gmM77ccYuwKC1JO8mNs29GWbZakT0keFQc JvZo51wehvYoaEGAfhwC+dHyap1ziI5PXOoeY5kaWZTXsFu+qjDuH+c6nP1sT0Vw NLpdVCXpsVnp/ykbzbgvSRXFqvaIRXscDOvqSf9mA9uVS3vpLCm2R5PXxKegMCcT skQ+xO13YiOKjUo3GFBP68/SYEQlj6H5 =4Txc -----END PGP SIGNATURE----- --7CZp05NP8/gJM8Cl--