Re: Unicode (was Re: Updating ncurses in base)

From: J.R. Oldroyd <fbsd_at_opal.com>
Date: Tue, 27 Jun 2006 15:53:45 -0400
On Jun 26, 23:14, J.R. Oldroyd wrote:
> 
> [ 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

Received on Tue Jun 27 2006 - 18:56:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:57 UTC