• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File encoding for files ported between Mac and Windows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File encoding for files ported between Mac and Windows?


  • Subject: Re: File encoding for files ported between Mac and Windows?
  • From: "Paul Sanders" <email@hidden>
  • Date: Wed, 6 Jan 2010 11:31:14 -0000

Yes, CVS.  Line-endings are actually stored in the repository as
LF-only, even in the Windows version (CVSNT).  On checkout, you
get CRLF if you are using Windows-based tools and LF-only if you
are using Unix-based tools.  To me, this is sensible behaviour.
You don't want to tell CVS your files are binary unless they
really are as this disables diffs and merges.  I'm not sure if
the Unix-based tools can talk to a CVSNT server.  The projects
forked a while back.

I do actually share the same 'live' source directory tree
between Windows and OS X.  I find it helpful to be able to build
(and, more to the point, test) on both platforms without having
to check stuff in.  I also sometimes develop initially on
Windows (because Fix and Continue works properly there) before
building and testing on the Mac (sorry guys).

The only issue I have come across is that certain files (shell
scripts in particular) require LF-only line endings.  I just run
a little 'd2u' script after checkout to fix this.  Life would be
perfect if Xcode (well, I think the bug is actually in OS X
itself) didn't hang periodically when accessing files on a
Windows server :(  Anyone else experienced this?  I am running
10.5.8 (and Windows XP).

The only character set issue I have experienced is when I
foolishly inserted a Unicode character in one of my source
files.  Don't do that.  Use "\xnnnn" (or &#nnnn; in html files)
instead.

Paul Sanders.

----- Original Message -----
From: "Alastair Houghton" <email@hidden>
To: "Clark Cox" <email@hidden>
Cc: "Xcode Users" <email@hidden>
Sent: Wednesday, January 06, 2010 9:51 AM
Subject: Re: File encoding for files ported between Mac and
Windows?


On 6 Jan 2010, at 04:45, Clark Cox wrote:

> I don't think I've seen an SCM
> system where line ending conversions are *mandatory*.

CVS?  Unless you tell it the files are binary, anyway, and that
has other implications.  I'm fairly certain some of the others
I've used do it as well, but I don't have a list of which ones
do and which don't.

Kind regards,

Alastair.

--
http://alastairs-place.net



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: File encoding for files ported between Mac and Windows?
      • From: Herman Keuchel <email@hidden>
References: 
 >File encoding for files ported between Mac and Windows? (From: Howard Moon <email@hidden>)
 >Re: File encoding for files ported between Mac and Windows? (From: Dix Lorenz <email@hidden>)
 >Re: File encoding for files ported between Mac and Windows? (From: Alastair Houghton <email@hidden>)
 >Re: File encoding for files ported between Mac and Windows? (From: Clark Cox <email@hidden>)
 >Re: File encoding for files ported between Mac and Windows? (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: File encoding for files ported between Mac and Windows?
  • Next by Date: No frameworks for iPhone-xCode?
  • Previous by thread: Re: File encoding for files ported between Mac and Windows?
  • Next by thread: Re: File encoding for files ported between Mac and Windows?
  • Index(es):
    • Date
    • Thread