chkascii is a small C program that checks files for any ASCII values that are possibly junk. Good ASCII values are considered as the following : 32-126 9 10 The user can optionally force additional ASCII values to be treated as good. For good text files, chkascii will wind up by checking on proper EOL termination. If the file is not EOL-terminated, it too is reported as an error.
Created attachment 199272 [details] shar archive for chkascii
BTW, it looks like WWW is missing from pkg-descr.
Created attachment 199274 [details] shar archive for chkascii (attempt# 2) characters read from disk now stored as unsigned char, not char
Created attachment 199275 [details] shar archive for chkascii (attempt# 3) pkg-descr now has WWW Mateusz, thanks for spotting the glitch. But should portlint not be checking for WWW if Makefile has 'USE_GITHUB=yes'
(In reply to bourne.identity@hotmail.com from comment #4) Well, not really. Many projects hosting their code on GitHub have a dedicated homepage which is not the GitHub repository.
Created attachment 199281 [details] shar archive for chkascii (attempt# 4) Minor fixes in app/man/pkg-descr.
Created attachment 199290 [details] shar archive for chkascii (attempt# 5) Improvements to app (next pointer initialized properly) and doc (return values incorporated).
Created attachment 199305 [details] shar archive for chkascii (attempt# 6) app now uses a factory method for node management
Please make sure that you address all the warnings reported by portlint next time. It looks like LICENSE and LICENSE_FILE are missing. What is the license this software is released under?
Created attachment 199342 [details] shar archive for chkascii (attempt# 7) LICENSE/LICENSE_FILE now included
A commit references this bug: Author: 0mp Date: Mon Nov 19 15:25:09 UTC 2018 New revision: 485326 URL: https://svnweb.freebsd.org/changeset/ports/485326 Log: New port: textproc/chkascii: Check an ASCII text file for invalid characters chkascii is a small C program that checks files for any ASCII values that are possibly junk. The following are considered the only good ASCII values permissible in a text file: 32-126, 9, 10 The user can optionally force additional ASCII values to be treated as good. For good text files, chkascii will wind up by checking on proper EOL termination. If the file is not EOL-terminated, that too is reported as an error. WWW: https://github.com/bourne-again/chkascii PR: 233254 Submitted by: bourne.identity@hotmail.com Reviewed by: krion Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D18047 Changes: head/textproc/Makefile head/textproc/chkascii/ head/textproc/chkascii/Makefile head/textproc/chkascii/distinfo head/textproc/chkascii/pkg-descr
Committed! Thanks!
Thanks so much, Mateusz