Hello Tony, On Sun, Oct 15, 2023 at 8:26 AM tony mancill <tmanc...@debian.org> wrote:
> Hi Ben, > > I believe the portion of the manpage you are referring to is: > > CONVERSION MODES > ascii > In mode "ascii" only line breaks are converted. This is the default > conversion mode. [**Missing information about UTF-16 behavior.**] > > Although the name of this mode is ASCII, which is a 7 bit standard, > the actual mode is 8 bit. Use always this mode when converting > Unicode UTF-8 files. > Yes, that is the section I was considering. The first sentence is quite definite that _only_ line breaks are converted, so the conversion of UTF-16 was a surprise (a pleasant one, yes, but still a surprise). Ideally, I'd like to see the option renamed and the man page say something like: CONVERSION MODES unix In the default mode, "unix", line breaks are converted to newlines, Unicode characters are encoded in UTF-8, and any BOM header is stripped. This mode was originally called "ascii" and that name still works as an alias for backwards compatibility. And, yes, I had missed the reference to how -ascii actually works in the --keep-utf16 section. It is good to see that unix2dos actually does what I wanted rather than what it claims it does. Thank you. Ben Wong