Liste des Groupes | Revenir à cl c |
On 09.02.2025 11:50, Michael S wrote:I think I once saw somewhere that utilities originating on Unix typically consider \n to be a line terminator, so include it at the end of every line including the last, whereas those originating on DOS/Windows typically consider \n to be a line separator, so don't include it at the end of the last line. So Unix-originated utilities might not behave as expected if the file doesn't end with \n, whereas Windows-originated utilities might treat the file as having an extra blank line at the end of the file if it does end with \n. Utilities ported from one system to the other sometimes continue following the convention of their origin, rather than the system they're running on.What do you consider "last line" of the file in which last character isI consider missing newlines at the end of any text line as a bug.
not LF?
(And I'm not inclined to use a weaker word than "bug".) YMMV.
Les messages affichés proviennent d'usenet.