Re: Formatting ASCII to be read by Windows NotePad
- From: Sherman Pendley <spamtrap@xxxxxxxxxxx>
- Date: Fri, 04 Jul 2008 12:56:01 -0400
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
.
- References:
- Formatting ASCII to be read by Windows NotePad
- From: UnRiel
- Re: Formatting ASCII to be read by Windows NotePad
- From: Sherman Pendley
- Re: Formatting ASCII to be read by Windows NotePad
- From: Waylen Gumbal
- Re: Formatting ASCII to be read by Windows NotePad
- From: Sherman Pendley
- Re: Formatting ASCII to be read by Windows NotePad
- From: Waylen Gumbal
- Re: Formatting ASCII to be read by Windows NotePad
- From: Sherman Pendley
- Re: Formatting ASCII to be read by Windows NotePad
- From: Bill H
- Formatting ASCII to be read by Windows NotePad
- Prev by Date: Re: FAQ 8.28 How can I call backticks without shell processing?
- Next by Date: Re: comp.lang.perl.misc pollution
- Previous by thread: Re: Formatting ASCII to be read by Windows NotePad
- Next by thread: Re: Formatting ASCII to be read by Windows NotePad
- Index(es):
Relevant Pages
|