Re: Formatting ASCII to be read by Windows NotePad



Bill H <bill@xxxxxxxxx> writes:

On Jul 4, 10:56 am, Sherman Pendley <spamt...@xxxxxxxxxxx> wrote:

Yes, I do remember that MacOS once, many years ago when "classic"
MacOS was relevant, used to use \r. Mac OS X uses \n, just like any
other Unix, as documented here:

<http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSyst...>
<http://tinyurl.com/58w7dy>

I'll jump on the Mac ftp issue bandwagon and even make it pertain to
perl. I have a couple of clients using DreamWeaver in OS X that,
whether due to settings or the OS, when they post their webpages or
perl scripts to one of my linux servers they wind up with the "\r" in
the scripts and a blank line after every line in the html files.

Dreamweaver's default setting is incorrect for Mac OS X - it still
defaults to the old format with \r. Fortunately, a quick trip to its
preferences can fix that.

Now one of
these same clients has used fetch (or the OS X equivalent) and this
problem went away, so it may be a Dreamweaver issue.

I think Transmit is a popular GUI FTP client; I use ncftp in a
terminal window myself. It sounds to me like Dreamweaver isn't using
ASCII mode transfers.

I also know, on a few of the Mac servers that I have had the "joy" of
moving websites off of, when d/ling the files via ftp, no setting
change (ascii or binary) will ever fix the lack of line feeds in the
files I receive from the Mac.

Were the files in the server's native format, using \n, to begin with?
If they weren't, I wouldn't expect a Mac or any other Unix server to
be able to do the translation. That's not a problem with Mac servers in
particular, it's just how ASCII transfers work in FTP; they're meant
to translate correctly-formatted files, not fix broken files.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
.



Relevant Pages

  • Re: Mac clients having trouble using FTP on SBS
    ... I understand that you encountered some problem when using FTP from Mac. ... Microsoft CSS Online Newsgroup Support ... |> We have a client with SBS2K who uses its FTP service to receive files ...
    (microsoft.public.windows.server.sbs)
  • Re: FTP from Mac client
    ... Then created a protocol rule called MAC, enabled, set action to allow, ... they can all talk to the Net but no FTP for the MAC's and no ... >> has 2 Nics and runs ISA. ...
    (microsoft.public.windows.server.sbs)
  • Re: F.A O Eriq Neale
    ... I did try the Active/passive thing but with no success, I will try the FTP ... > What application are you using to tes FTP florm the Mac? ... >> Then created a protocol rule called MAC, enabled, set action to allow, ... >>> FTP because they are most likely using the Firewall client for ISA. ...
    (microsoft.public.windows.server.sbs)
  • Re: Mac OS X -> Pathworks/Mac problems
    ... > Just an FYI for anyone accessing OpenVMS disks from their Mac OS X system ... > the Mac. ... Server menu entry in Finder. ... FTP services. ...
    (comp.os.vms)
  • F.A O Eriq Neale
    ... (please see previous thread below re FTP from Mac clients) ... Then created a protocol rule called MAC, enabled, set action to allow, ...
    (microsoft.public.windows.server.sbs)