diff options
author | delphij <delphij@FreeBSD.org> | 2009-05-09 01:35:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2009-05-09 01:35:27 +0000 |
commit | 810e5a84b4607c4d0fc76e9a418ae9fd2b0eeeb2 (patch) | |
tree | 5e0628caeff31611fab89dbdf72053148a59a873 /contrib/less/charset.c | |
parent | 8583a840068803e7fd9e0fc2452605bca6e822d8 (diff) | |
download | FreeBSD-src-810e5a84b4607c4d0fc76e9a418ae9fd2b0eeeb2.zip FreeBSD-src-810e5a84b4607c4d0fc76e9a418ae9fd2b0eeeb2.tar.gz |
Update to less v429.
Diffstat (limited to 'contrib/less/charset.c')
-rw-r--r-- | contrib/less/charset.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/contrib/less/charset.c b/contrib/less/charset.c index 37d344d..04ef8bf 100644 --- a/contrib/less/charset.c +++ b/contrib/less/charset.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1984-2007 Mark Nudelman + * Copyright (C) 1984-2008 Mark Nudelman * * You may distribute under the terms of either the GNU General Public * License or the Less License, as specified in the README file. @@ -393,8 +393,10 @@ init_charset() */ public int binary_char(c) - unsigned char c; + LWCHAR c; { + if (utf_mode) + return (is_ubin_char(c)); c &= 0377; return (chardef[c] & IS_BINARY_CHAR); } @@ -404,7 +406,7 @@ binary_char(c) */ public int control_char(c) - int c; + LWCHAR c; { c &= 0377; return (chardef[c] & IS_CONTROL_CHAR); @@ -416,7 +418,7 @@ control_char(c) */ public char * prchar(c) - int c; + LWCHAR c; { /* {{ This buffer can be overrun if LESSBINFMT is a long string. }} */ static char buf[32]; @@ -811,7 +813,11 @@ static struct wchar_range comb_table[] = { * dated 2005-11-30T00:58:48Z */ static struct wchar_range ubin_table[] = { - { 0x0000, 0x001F} /* Cc */, { 0x007F, 0x009F} /* Cc */, + { 0x0000, 0x0007} /* Cc */, + { 0x000B, 0x000C} /* Cc */, + { 0x000E, 0x001A} /* Cc */, + { 0x001C, 0x001F} /* Cc */, + { 0x007F, 0x009F} /* Cc */, #if 0 { 0x00AD, 0x00AD} /* Cf */, #endif |