Unicode (was Re: Updating ncurses in base)
J.R. Oldroyd
fbsd at opal.com
Tue Jun 27 20:56:21 UTC 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 390 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060627/48826c80/attachment.pgp
More information about the freebsd-current
mailing list