Dominik George dixit:

>ones (as in, strip exactly one CR occurence preceding any LF). This 
>behaviour is also correct for text that had reall CRLF line breaks in its 
>original form as those will be CRCRLF after MIME encoding.

Note: If the original form was an ASCII CR-LF document, they might not
necessarily have been translated to CR+CR+LF by the MUA, especially
when on MS-DOS or similar systems… but for debbugs we mostly talk
about diffs and intended-for-humans text messages so I think that
loss would be acceptable. (Even when diffing a CR-LF file, the patch
headers are LF-terminated.)

Did anyone ever do a survey which MTAs encode a mixed line-ending how?

Example:

printf 'Line with LF\nLine with CR-LF\r\nAnd LF again.\n' >test.txt

bye,
//mirabilos
-- 
<hecker> cool ein Ada Lovelace Google-Doodle. aber zum 197. Geburtstag? Hätten
die nicht noch 3 Jahre warten können? <mirabilos> bis dahin gibts google nicht
mehr <hecker> ja, könnte man meinen. wahrscheinlich ist der angekündigte welt-
untergang aus dem maya-kalender die globale abschaltung von google ☺ und darum
müssen die die doodles vorher noch raushauen


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to