]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Sep 2014 12:59:28 +0000 (12:59 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Sep 2014 12:59:28 +0000 (12:59 +0000)
commit08558c02d284947316d5f5290165ec51a05f6031
treeb6ac123074eda41c368cd2feeae93445d6c4b776
parent735728cf5af6fb1f336b0ba7d1c1f595a00a4b68
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/9@271902 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/pathchk/pathchk.c