Complete.Org: Mailing Lists: Archives: gopher: March 2002:
[gopher] Re: Existing \r\n Behaviour
Home

[gopher] Re: Existing \r\n Behaviour

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: gopher@xxxxxxxxxxxx
Subject: [gopher] Re: Existing \r\n Behaviour
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: Wed, 27 Mar 2002 10:43:50 -0500
Reply-to: gopher@xxxxxxxxxxxx

On Friday, March 22, 2002, at 10:48  PM, Ralph Furmaniak wrote:

> While we're looking for things to ammend, how about the translation \n
> -> \r\n in files.  Nowadays, there is no problem if the files just have

I'm a bit lost -- where exactly does this translation occur?  Nothing in 
the RFC or Gopher+ spec seems to indicate it.

> \n (unless you are using notepad, but who is?).  But the problem is that
> if you do this to a unix script file (shell, perl, etc) it will no
> longer work, because of the \r at the end of the first line (ie, it
> would try to execute /usr/bin/perl\r).  It also breaks other things such
> as pdf files (which are a mix of text and binary, and are reported to be
> text files).

UMN gopherd has some issues with correctly identifying file types.  
That's one reason I'm working on pygopherd right now.  Perhaps it can 
one day be a drop-in replacement.

-- John



[Prev in Thread] Current Thread [Next in Thread]