summaryrefslogtreecommitdiffstats
path: root/usr.bin/less/charset.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* trivial patch to at least make the buggy functions control_char()schwarze2019-05-151-2/+2
| | | | and get_wchar() static for now - until they can be deleted
* Clean up all major UTF-8 issues in cvt.c.schwarze2019-05-151-42/+0
| | | | | This also allows to delete the buggy, now unused function put_wchar(). OK millert@
* Completely clean up UTF-8 handling in the file filename.c:schwarze2019-05-071-12/+0
| | | | | | | | | | Employ the usual form of an mbtowc(3) loop, eliminating two calls to the bad function step_char() and reducing the number of nested loops by one. This also removes the last caller of the bad function binary_char(), which is consequently deleted. While here, count ASCII C0 non-whitespace control characters as binary (except backspace and, with -R only, escape). OK millert@
* control_char() for ASCII needs to include both genuine controlnicm2017-04-201-1/+3
| | | | | | | | characters and top-bit-set nonprintable characters (so both iscntrl() and !isprint()), fixes behaviour broken in r1.15/r1.16, noticed by deraadt@. ok deraadt tedu
* Avoid an out of bounds read when the environment variable LESSBINFMTmillert2017-01-041-3/+4
| | | | is set to "*". Patch from Tobias Stoeckmann. OK tb@
* little bit more KNFderaadt2016-09-171-2/+2
|
* style(9) includesmmcc2016-03-161-2/+2
| | | | ok nicm@
* Remove chardef[] and just use isprint/iscntrl directly, ok tedunicm2015-11-121-37/+7
|
* delete custom charset tables and just use ctype. init utf_mode from LC_CTYPEtedu2015-11-071-143/+2
| | | | ok nicm
* remove some charsets we don't use. remove LESSCHARSET since setting it totedu2015-11-071-62/+0
| | | | | anything other than LC_CTYPE is likely a bug. ok nicm
* remove rarely used LESSCHARDEF support. ok nicmtedu2015-11-061-9/+0
|
* Garrett D'Amore has agreed to moving his copyright line up above thenicm2015-11-061-4/+2
| | | | | terms with the existing copyright, so it is clear it applies the same terms.
* whitespacederaadt2015-11-051-1/+1
|
* Replace less with the cleaned-up fork of less 458 maintained by Garrettnicm2015-11-051-416/+287
| | | | | | | | | | | | | D'Amore at https://github.com/gdamore/less-fork. This has significantly less portability goop, has a tidied up code style, uses terminfo instead of termcap, and is has stricter POSIX compliance. Many of our local changes have been accepted upstream: substantial remaining local changes are code to read help files from /usr/share rather than compiling them in, man page and help improvements, and some tweaks to the default options. Review and testing by millert, ok deraadt
* Merge Less 458 plus local patchesshadchin2014-04-251-3/+2
| | | | ok guenther@, ok jmc@ for man bits
* Fix mismerged copyright noticemillert2011-09-211-2/+2
| | | | | Use strlcpy() not snprintf() to copy a simple string. OK deraadt@
* Merge in less 444 plus local changesshadchin2011-09-161-52/+912
| | | | ok nicm@
* isprint() doesn't consider all whitespace to be printable so usemillert2004-04-251-1/+1
| | | | | isspace() too. Problem noticed by cedric@ and diagnosed by deraadt@. OK deraadt@.
* Hard-code charset if SMALLmillert2003-04-171-0/+54
|
* Merge in less-381 w/ local changes and remove obsolete files.millert2003-04-131-49/+96
|
* lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduderaadt2003-03-131-5/+5
|
* kill more registersmpech2001-11-191-8/+8
| | | | millert@ ok
* $OpenBSD$niklas2001-01-291-0/+2
|
* Import of unmolested less-290.etheisen1996-09-211-0/+287