> How to distinguish \r being a part _of the real data_ from \r being a > part of CRNL then? Heuristics may lead to unwanted data mangling... Oh no! \r is never considered part of the data. The easiest way is to just drop (ignore) \r and only count \n as line termination. The better way is to check, if \r is followed by \n otherwise it is a formatting error. That is a \r without a \n is not allowed within mail messages. That type of Line termination handling is standard in programs like reformime, uudecode etc. ... and it works perfectly.
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
