in reply to Handling Mac, Unix, Win/DOS newlines at readtime...

Your proposal looks fine. Ideally, your file transfers should be in ASC mode but you can't rely on people doing that.

You could take the opportunity to translate lineends to native format for the server.

Do you mean ... die "$filename can't... ?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Handling Mac, Unix, Win/DOS newlines at readtime...
by sauoq (Abbot) on Sep 16, 2002 at 03:57 UTC
    Ideally, your file transfers should be in ASC mode but you can't rely on people doing that.

    That assumes FTP and doesn't even apply to other common (and arguably better) methods such as HTTP, scp, rsync, etc.

    -sauoq
    "My two cents aren't worth a dime.";
    
      We ask folks to FTP into the server. Unfortunately, this does pose some problems. First one is "I can't get it working behind my firewall" (solution: WebFTP). The second one is having consistent file transfers in the right format. Given that not only the users aren't smart enough to do it, but the programs as well, we better code properly.

      --
      $Stalag99{"URL"}="http://stalag99.keenspace.com";