This is an update of Benjamin Lin's implementations of dos2unix and
unix2dos. Benjamin Lin's implementations of dos2unix and unix2dos were
distributed via SunSITE.unc.edu (later MetaLab.unc.edu, now ibiblio)
and became part of several Linux distributions such as RedHat, Suse,
Gentoo, and others. This update includes all RedHat patches and fixes
several other problems. Internationalization has been added and ports
to DOS, Windows, Cygwin and OS/2 Warp have been made.
Features
* Native language support.
* Automatically skips binary and non-regular files.
* In-place, paired, or stdio mode conversion.
* Keep original file dates option.
* 7-bit and iso conversion modes like SunOS dos2unix.
* Conversion of Unicode UTF-16 files.
* Handles Unicode Byte Order Mark (BOM).
* Display file information.
* Secure.
===> The following configuration options are available for dos2unix-7.5.7:
DOCS=on: Build and/or install documentation
MANPAGES=on: Build and/or install manual pages
NLS=on: Native Language Support
===> Use 'make config' to modify these settings
converters/dos2unix: Add new port
This is a port for Erwin Waterlander's dos2unix, which is shipped in
most Linux distributions, and has many more features than the similar
converters/dosunix and converters/unix2dos ports. It is also much more
maintained, as those other ports have not had significant updates in
years.
The port has DOCS and NLS options, to toggle the building and/or
installing of documentation, multi-lingual messages and man pages.
Note that this port's "dos2unix" and "unix2dos" binaries conflict with
those of the converters/unix2dos port, but I see no good reason to have
both installed at the same time.
PR: 271998
Reviewed by: eduardo
MFH: 2023Q2