Quote:
Originally Posted by
bakunin
.
.
.
The only thing "dos2unix" and similar tools do is to replace <CR><LF>-styly line ends (DOS/Win) to <NL>-style line ends (UNIX).
.
.
.
Not quite, I'm afraid. Back in those days when you had DOS PCs and code pages like 437 or 850, I had a long
sed script to convert extended DOS char sets to *nix local char sets, which later was done by
dos2unix on the fly (if I remember correctly, that is). It also converts between UTF-8 and UTF-16, I hear say.
But nowadays, when windows uses UTF-8 as well, it may reduce to just removing the <CR> characters.