[Flightgear-devel] Re: Bad line endings when running on windows

2002-05-19 Thread Melchior FRANZ

* Bernie Bright -- Sunday 19 May 2002 06:23:
> As for line endings I think its simpler if we just use CRLF for both
> client and server.  I will check that the new server always sends CRLF.

ACK
Not that this is in any way obligatory, but the perl documentation says:

  $ man perlipc|col -b|grep -A12 "Line Terminators"
 Internet Line Terminators

 The Internet line terminator is "\015\012".  Under ASCII
 variants of Unix, that could usually be written as "\r\n",
 but under other systems, "\r\n" might at times be
 "\015\015\012", "\012\012\015", or something completely
 different.  The standards specify writing "\015\012" to be
 conformant (be strict in what you provide), but they also
 recommend accepting a lone "\012" on input (but be lenient
 in what you require).  We haven't always been very good
 about that in the code in this manpage, but unless you're
 on a Mac, you'll probably be ok.

m.

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] Re: Bad line endings when running on windows

2002-05-19 Thread Melchior FRANZ

* Frederic Bouvier -- Sunday 19 May 2002 15:10:
> From: "Melchior FRANZ" <[EMAIL PROTECTED]>
> >   $ man perlipc|col -b|grep -A12 "Line Terminators"
> >  Internet Line Terminators

> This is off-topic. As Julian points out, RFC854, chapter 7, specify that
> a new line is CRLF in the telnet protocol.

Please actually =read= what you comment on. Did you read anything about
telnet in this quote? It's about "INTERNET LINE TERMINATORS", not about
telnet.  ^^^

m.

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Re: Bad line endings when running on windows

2002-05-19 Thread Frederic Bouvier

From: "Melchior FRANZ" <[EMAIL PROTECTED]>
> * Bernie Bright -- Sunday 19 May 2002 06:23:
> > As for line endings I think its simpler if we just use CRLF for both
> > client and server.  I will check that the new server always sends CRLF.
> 
> ACK
> Not that this is in any way obligatory, but the perl documentation says:
> 
>   $ man perlipc|col -b|grep -A12 "Line Terminators"
>  Internet Line Terminators
> 
>  The Internet line terminator is "\015\012".  Under ASCII
>  variants of Unix, that could usually be written as "\r\n",
>  but under other systems, "\r\n" might at times be
>  "\015\015\012", "\012\012\015", or something completely
>  different.  The standards specify writing "\015\012" to be
>  conformant (be strict in what you provide), but they also
>  recommend accepting a lone "\012" on input (but be lenient
>  in what you require).  We haven't always been very good
>  about that in the code in this manpage, but unless you're
>  on a Mac, you'll probably be ok.

This is off-topic. As Julian points out, RFC854, chapter 7, specify that
a new line is CRLF in the telnet protocol.

-Fred




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Re: Bad line endings when running on windows

2002-05-19 Thread Bernie Bright

Frederic Bouvier wrote:
> 
> From: "Melchior FRANZ" <[EMAIL PROTECTED]>
> > * Bernie Bright -- Sunday 19 May 2002 06:23:
> > > As for line endings I think its simpler if we just use CRLF for both
> > > client and server.  I will check that the new server always sends CRLF.
> >
> > ACK
> > Not that this is in any way obligatory, but the perl documentation says:
> >
> >   $ man perlipc|col -b|grep -A12 "Line Terminators"
> >  Internet Line Terminators
> >
> >  The Internet line terminator is "\015\012".  Under ASCII
> >  variants of Unix, that could usually be written as "\r\n",
> >  but under other systems, "\r\n" might at times be
> >  "\015\015\012", "\012\012\015", or something completely
> >  different.  The standards specify writing "\015\012" to be
> >  conformant (be strict in what you provide), but they also
> >  recommend accepting a lone "\012" on input (but be lenient
> >  in what you require).  We haven't always been very good
> >  about that in the code in this manpage, but unless you're
> >  on a Mac, you'll probably be ok.
> 
> This is off-topic. As Julian points out, RFC854, chapter 7, specify that
> a new line is CRLF in the telnet protocol.
> 
We are not bound to implement the telnet protocol because we don't
provide a telnet server.  However you are correct in that the props
server doesn't always respond with CRLF line terminators.  I have a
patch that I will send to Curt real soon.

Bernie

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel