]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 31 Aug 2014 20:34:06 +0000 (20:34 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 31 Aug 2014 20:34:06 +0000 (20:34 +0000)
commit80fc559df49ab071e534316d4c8d43b59c0eaa9d
tree780218b7495d71ca2fd15217cc47cd8120b93847
parent139371aff0c2b2ddaf40d5da95a477908b7f8d07
MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
characters.

This was not broken on architectures such as ARM where char is unsigned.

Also, remove the first non-portable character from the output. POSIX does
not require this, and printing the first byte may yield an invalid byte
sequence with UTF-8.

PR: 165988
Reported by: Nicolas Rachinsky
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@270890 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/pathchk/pathchk.c