Re: Line wrapping..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 23, 2003 at 02:54:17PM -0500, Shawn wrote:
> This message looks fine. Any email client "worth it's salt" has the
> ability to automatically wrap messages properly. Such as Evolution (the
> one I'm currently using) ;)
 
No, it's not fine.  According to the C standard, lines in a "text" file
should have more no than 509 characters.  The magic number 509 is an outgrowth
of the archaic and unsafe "char buf[512]; gets(buf);" coding practices,
coupled with Microsoft's #@#$!  CR-NL nonsense.

This is not just theoretical, e.g. "fmt" is broken on Solaris 8 (*):

GNU:

$ gawk 'BEGIN {while(i++<513) printf "x "; printf "\n"; exit 0}' | fmt | wc -w
    513

Solaris 8:

$ gawk 'BEGIN {while(i++<513) printf "x "; printf "\n"; exit 0}' | fmt | wc -w
     512

Regards,

   Bill Rugolsky

(*) Actually, most of the userland utils on Solaris are broken --
    [k]sh, sort, join, vi, etc.  On our Solaris systems we run GNU/Solaris. :-P





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux