You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2011/10/29 23:38:23 UTC

[Bug 6456] add carriage return to make output more readable for Windows

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6456

--- Comment #4 from Karsten Bräckelmann <gu...@rudersport.de> 2011-10-29 21:38:23 UTC ---
Hmm, I don't really like the thought of defining a $delimiter variable...

Would using $/ instead of \n not already solve the problem without us adding
special delimiter code? Yeah, $/ actually is the input record separator, but it
is set according to the OS, unlike its output equivalent $\ (which defaults to
undef, and generally effects print statements).

See perlvar and perlport, section Newlines.

Using PerlIO :crlf on the output filehandle should also solve this, requiring
code adjustments in a different place.

See PerlIO.

In both cases I'm not sure though, if there is any negative effect on Mac OS
systems, which uses CR rather than LF (Unix) or CRLF (Windows). Is that even
still true since Mac OS X?

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.