[Gambas-user] Help with some parsing

nando nando_f at ...951...
Wed Feb 18 00:52:57 CET 2009


I got a chuckle from this one.
A typewriter, those mechanical things that are only in black and white movies
and museum actually performed CRLF using that bar to perform the line feed and 
carriage return.  And CR LF comes from that. 
All the software I write for HTTP, ascii files, When reading, I only look for the LF.
If I find a CR, I just ignore it. I have yet to find a case it normally
doesn't work with.


---------- Original Message -----------
From: Doriano Blengino <doriano.blengino at ...1909...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Tue, 17 Feb 2009 23:14:49 +0100
Subject: Re: [Gambas-user] Help with some parsing

> Emil Tchekov ha scritto:
> > CHR$(10) & CHR$(13) - carriage return & line feed
> > Those are special "command" character from the "stone age" of the informatic
> > used to go to the next line (add new line) - was needed in the times where a
> > martix printer with ink ribbon the single output device of the computer
> > was....
> >   
> Pardon me to point out. I disagree,
> chr$(13) is CR; chr$(10) is LF.
> While it is true they are an old standard, saying they are "from the 
> stone age" is not fair. HTTP protocol relies on CR-LF, and you must 
> admit that HTTP protocol is well alive - not a "stone age" standard. The 
> fact CR-LF is so old is a proof of its power.
> Moreover, text files are the most expressive and versatile form of 
> digital data. Html, Xml, Svg, Postscript, PDF, are all in wide use and 
> are based on ASCII, and so they contain CR-LF sequences.
> 
> The fact Unix/Linux uses a single LF instead of a CR-LF is pretty 
> marginal - it was simply a design choice. A windows HTTP server can take 
> text files from disk and serve them verbatim, while a Unix HTTP server 
> has to translate them (to add the missing CR). Anyway, the concept is 
> the same. Most programs today can cope perfectly well with this two 
> standars.
> 
> In the end, the only thing I wanted to say is that CR and LF are far 
> more than what you depicted, and they are still needed.
> 
> Regards,
> 
> -- 
> Doriano Blengino
> 
> "Listen twice before you speak.
> This is why we have two ears, but only one mouth."
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list