[OT] Dealing with line endings in cross-platform dev environment

Hi All,

We've got a shop about evenly split between MacOS and Windows users, 
and we occasionally run into problems with line endings between the LF 
of MacOS/Unix/Linux and the CR/LF of Windows.  I'm wondering if anyone 
has used Perl (or maybe awk?) in a cvswrapper to do automatic 
translation between the formats.  Any gotchas or pointers I should know 
about?

Our repository is on a Linux machine, so there shouldn't be any 
conversion to and from the Macs.  But for the Windows machines fetching 
updates from the repository, will Windows automatically alter line 
endings when the file is written to the local disk or would you need a 
local script?

Thanks,
David

0
djantzen
11/8/2004 6:06:25 PM
perl.macosx 2309 articles. 0 followers. Follow

0 Replies
595 Views

Similar Articles

[PageSpeed] 34

Reply:

Similar Artilces:

superreview cancelled: [Bug 330461] Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text
Uri Bernstein <uriber@gmail.com> has cancelled Uri Bernstein <uriber@gmail.com>'s request for superreview: Bug 330461: Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text https://bugzilla.mozilla.org/show_bug.cgi?id=330461 Attachment 218353: patch https://bugzilla.mozilla.org/attachment.cgi?id=218353&action=edit ------- Additional Comments from Uri Bernstein <uriber@gmail.com> Actually, upon further consideration, I don't think th...

superreview granted: [Bug 330461] Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text :
Robert O'Callahan (Novell) <roc@ocallahan.org> has granted Uri Bernstein <uriber@gmail.com>'s request for superreview: Bug 330461: Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text https://bugzilla.mozilla.org/show_bug.cgi?id=330461 Attachment 232681: patch v2 https://bugzilla.mozilla.org/attachment.cgi?id=232681&action=edit ...

superreview requested: [Bug 330461] Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text #3
Uri Bernstein <uriber@gmail.com> has asked Robert O'Callahan (Novell) <roc@ocallahan.org> for superreview: Bug 330461: Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text https://bugzilla.mozilla.org/show_bug.cgi?id=330461 Attachment 218353: patch https://bugzilla.mozilla.org/attachment.cgi?id=218353&action=edit ...

superreview requested: [Bug 330461] Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text #2
Uri Bernstein <uriber@gmail.com> has asked Robert O'Callahan (Novell) <roc@ocallahan.org> for superreview: Bug 330461: Bidi: In a line ending with reverse-direction text, "End" does not move the caret to the visual end of the line, if the next line starts with reverse-direction text https://bugzilla.mozilla.org/show_bug.cgi?id=330461 Attachment 232681: patch v2 https://bugzilla.mozilla.org/attachment.cgi?id=232681&action=edit ...

Is dev-platform for platform users or platform developers?
So since dev-tech-xpcom closed, there's been an awful lot of traffic on dev-platform from platform users. I don't really have time to read this, and it probably means I'll be paying less attention to the platform developer traffic on dev-platform (if any at all; I'd long since unsubscribed to dev-tech-xpcom until told to resubscribe to follow the XPCOM memory management discussion). Does this discussion belong on dev-platform, or should it be redirected elsewhere? -David -- L. David Baron http://dbaron.org/ Mozilla Corporation ...

Macbook for cross platform dev.?
I'm pondering retiring my laptop and sort of considering a Macbook. Why? - I do web/linux stuff which can be done on anything, and for XEx to compile OSX/iOS versions. I don't currently have any cross platform work, but maybe it will happen! One way to do this is to run Windows in a VM on the Mac. I have access to but don't own a Mac Mini, but this isn't very portable anyway. Which leads me to the question - I'm used to a 4GB/320GB SSD laptop. RAM and SSD seems pricey for the Apple stuff, so would a Macbook be faster than Windows in a way that a HDD wouldn't be...

Reading file line by line regardless of type of end-of-line?
I would like to create a perl script that reads lines from an ascii file, but that reads them regardless of whichever of the three variants (<CR>, <LF> or <CR><LF>) is actually in use as end-of-line, *without* knowing beforehand which is the case. The script should run on many systems (so installing a special version of Perl is out of the question). Now perl has the input_line_separator which you can set to a value, sadly though, it is not a regular expression. Which means that I am looking for a trick or a method to handle text files line by line regar...

Ome cross-platform desktop environment based on FirefoxOS
sera q esse projeto vai rolar? https://code.google.com/p/omenvironment/ Nao tem nenhum arquivo de codigo fonte nesse projeto ainda. Se for sair alg= o dai vai demorar muito.<br><br>Abs<br><br><span style=3D"font-family:Prelu= de, Verdana, san-serif;"><br><br></span><span id=3D"signature"><div style= =3D"font-family: arial, sans-serif; font-size: 12px;color: #999999;">-- Sen= t from my HP Pre 2<br>-- webOS Rulz</div><br></span><span style=3D"color:na= vy; font-fami...

superreview requested: [Bug 305235] "Cross Platform COM" should be "Cross-Platform COM" : [Attachment 193698] patch
David Bienvenu <bienvenu@nventure.com> has asked Scott MacGregor <mscott@mozilla.org> for superreview: Bug 305235: "Cross Platform COM" should be "Cross-Platform COM" https://bugzilla.mozilla.org/show_bug.cgi?id=305235 Attachment 193698: patch https://bugzilla.mozilla.org/attachment.cgi?id=193698&action=edit ------- Additional Comments from David Bienvenu <bienvenu@nventure.com> is there a module owner for the installer? I guess mscott :-) ...

superreview granted: [Bug 305235] "Cross Platform COM" should be "Cross-Platform COM" : [Attachment 193698] patch
Scott MacGregor <mscott@mozilla.org> has granted David Bienvenu <bienvenu@nventure.com>'s request for superreview: Bug 305235: "Cross Platform COM" should be "Cross-Platform COM" https://bugzilla.mozilla.org/show_bug.cgi?id=305235 Attachment 193698: patch https://bugzilla.mozilla.org/attachment.cgi?id=193698&action=edit ...

superreview requested: [Bug 299622] BiDi: Pressing End in a blank line moves the caret back, to the end of the previous line : [Attachment 193559] patch
Uri Bernstein <uriber@gmail.com> has asked Robert O'Callahan (Novell) <roc@ocallahan.org> for superreview: Bug 299622: BiDi: Pressing End in a blank line moves the caret back, to the end of the previous line https://bugzilla.mozilla.org/show_bug.cgi?id=299622 Attachment 193559: patch https://bugzilla.mozilla.org/attachment.cgi?id=193559&action=edit ------- Additional Comments from Uri Bernstein <uriber@gmail.com> ROC - this is a bit of code removal which makes things look neater and work better. Don't worry - I won't ask for this to go into the br...

superreview granted: [Bug 299622] BiDi: Pressing End in a blank line moves the caret back, to the end of the previous line : [Attachment 193559] patch
Robert O'Callahan (Novell) <roc@ocallahan.org> has granted Uri Bernstein <uriber@gmail.com>'s request for superreview: Bug 299622: BiDi: Pressing End in a blank line moves the caret back, to the end of the previous line https://bugzilla.mozilla.org/show_bug.cgi?id=299622 Attachment 193559: patch https://bugzilla.mozilla.org/attachment.cgi?id=193559&action=edit ...

superreview granted: [Bug 299838] BiDi: Caret disappears outside the end of lines that end with spaces (when such lines are part of an overflowing paragraph) : [Attachment 188448] patch
Robert O'Callahan (Novell) <roc@ocallahan.org> has granted Uri Bernstein <uriber@gmail.com>'s request for superreview: Bug 299838: BiDi: Caret disappears outside the end of lines that end with spaces (when such lines are part of an overflowing paragraph) https://bugzilla.mozilla.org/show_bug.cgi?id=299838 Attachment 188448: patch https://bugzilla.mozilla.org/attachment.cgi?id=188448&action=edit ...

superreview requested: [Bug 299838] BiDi: Caret disappears outside the end of lines that end with spaces (when such lines are part of an overflowing paragraph) : [Attachment 188448] patch
Uri Bernstein <uriber@gmail.com> has asked Robert O'Callahan (Novell) <roc@ocallahan.org> for superreview: Bug 299838: BiDi: Caret disappears outside the end of lines that end with spaces (when such lines are part of an overflowing paragraph) https://bugzilla.mozilla.org/show_bug.cgi?id=299838 Attachment 188448: patch https://bugzilla.mozilla.org/attachment.cgi?id=188448&action=edit ------- Additional Comments from Uri Bernstein <uriber@gmail.com> Handle the RTL case similarly to the way the LTR case is handled. This should have been included in the fix f...

Cross-browser, cross-platform compatibility?
I read quite a few threads on Netscape, etc. Could anyone give sort of an 'overview for dummies' of what the issues are with .NET in a non-IE, and/or non-Windows environment? The apps I am considering attempting this with are heavily datacentric, lots of datagrids. They are already working great in IE on Windows. Don't ask me why, the boss wants it . . . Thanking you in advance for any info, Ka...

Cross browser/Cross platform comptibility
Is there any way that the new Menu control can be used for dynamic menus that will be cross browser and cross platform compatible?ThanksI love computers because: MY WISH IS THEIR COMMAND :)<Website><Gadget>...

Cross-browser, cross-platform compatibility?
I read quite a few threads in these forums regarding Netscape, etc. Could anyone give sort of an 'overview for dummies' of what the issues are with .NET in a non-IE, and/or non-Windows environment? For a person who is not a web programmer. The apps I am considering attempting this with are heavily datacentric, lots of datagrids. They are already working great in IE on Windows. Don't ask me why, the boss wants it . . . Thanking you in advance for any info, Ka Your best bet is picking up Alex Homer's book: Professional ASP.Net Web Forms Techniques The first part of the bo...

cross platform, cross version migration
Hello- I have an existing 11.0.3 database running on SCO Unix (OpenServer v5.05) I want to migrate to 12.05 running on Win2K. I have no knowledge of the schema, or access to the db except for a dump file. Can this be done? Alternatively, I've been trying to get a SCO box set up, but the only older version of SCO I can find is 5.04, and I can't find *any* ASE that runs on SCO. Help? Thanks. LT "Les Thaler" <lest@microsoft.com> wrote in news:uw5y6yjUDHA.261@forums-2-dub: > Hello- > > I have an existing 11.0.3 database running on SCO U...

Restoring dump file
I have a series of.dump files from the same db (the .dump files are named as .Dump1of10 .Dump2of10 etc) that was on solaris running ASE version 12.5.4. I'm trying to restore these .Dump files on to my ASE dev edition version 15.0.3. I tried restoring in 2 ways and following are the steps I took and the error messages I got Mentod 1: Restoring by right clicking an empty db Step 1: Created an empty db Step 2: Right clicked this db and selected restore and then selected restore the entire database Step 3:For selecting the dump device, I chose 'Explicit Dump Device" a...

Merging dev-tech-layout into dev-platform
Today I found out that I had missed a post from David Baron on dev-tech-layout, because I had no idea that this list exists. I think dev-platform is a better place to have the conversation related to the layout module (people are already having discussions about other modules over there). Does anybody have any objections? Cheers, Ehsan ...

Seaching for Words at the beginning of the line and end of line
------=_NextPart_000_0190_01C567A3.47303900 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit How do I search for the word "intern" without searching for "internal"? What I have been doing is /intern[^a]/ but that won't match /intern$/. Thanks, Siegfried ------=_NextPart_000_0190_01C567A3.47303900-- On Jun 2, Siegfried Heintze said: > How do I search for the word "intern" without searching for "internal"? > > What I have been doing is /intern[^a]/ but that...

Merging dev-tech-layout into dev-platform
Today I found out that I had missed a post from David Baron on dev-tech-layout, because I had no idea that this list exists. I think dev-platform is a better place to have the conversation related to the layout module (people are already having discussions about other modules over there). Does anybody have any objections? Cheers, Ehsan ...

End of Line ... my time at TechTV has come to an end.
Friday, April 02, 2004 - 04:11 PM After nearly ten years, four owners, well over 2000 live TV shows, lots of laughs, a few tears, and meeting many many wonderful people, my time at TechTV has come to an end. http://leo.typepad.com/tlr/2004/04/end_of_line.html#0001147717 -- /////////////////////////////////////////////////// Terry Webb ... is COBOL really dead? Terry L. Webb <tlw@mindless.com> wrote in news:MPG.1ad9768868b38e5d9896e8 @news.grc.com: > Friday, April 02, 2004 - 04:11 PM > > After nearly ten years, four owners, well over 2000 live TV show...

DST 2007 cross organization and cross platform!!
DST2007 problem when send appointment cross platform: When we receive appointment from outlook 2003 in Exchange 2003, we found appointment has one 1 hour different, which show up in GroupWise calender 1 hour late. For example, some one schedule appointment at March 15, 2007 from 8:00AM to 9:00AM through Outlook from Exchange, and we got the appoinment in GroupWise Calender, and appoinment show up as 9:00AM to 10:00AM, there is 1 hour different, Our system: GroupWise 7 with SP1 Windows XP with SP2 with DST2007 patch GroupWise 7 Timezone has been changed in Console One No patch...

Web resources about - [OT] Dealing with line endings in cross-platform dev environment - perl.macosx

Cross-platform interchange - Wikipedia, the free encyclopedia
Double cross platform interchange looking from one train through another train (which has its doors open on both sides) to reveal a third train. ...

INFOGRAPHIC: 63 Percent Of Cross-Platform Gamers Discovered Facebook Games Via Friends
A total of 63 percent of cross-platform gamers who responded to a recent study by casual games developer Arkadium said they discovered Facebook ...

Facebook announces the new Atlas: a cross-platform ad network
... announced the relaunch in a blog post: Atlas delivers people-based marketing , helping marketers reach real people across devices, platforms ...

The Shift-Option-K Apple Logo Glyph Is Not Cross-Platform
... property. You could argue that it’s the single most valuable IP asset the company owns. This means the glyph does not render on platforms other ...

Producteev - Cross Platform and Free Task Management for iPhone, iPod touch, and iPad on the iTunes App ...
Get Producteev - Cross Platform and Free Task Management on the App Store. See screenshots and ratings, and read customer reviews.

Cross Media Social Platform - YouTube
The Cross Media Social Platform (CMSP) is a unique 3D multiparty live chat platform currently broadcasting a 3D environment on TV merged with ...

Microsoft releases Xbox Music for iOS with ad-free music streaming and cross-platform syncing
... more special coverage of Apps . What do you think? Discuss "Microsoft releases Xbox Music for iOS with ad-free music streaming and cross-platform ...

The Big Problem With Cross-Platform Measurement: No One Wants To Pay
The entire industry is clamoring for advancements in cross-platform measurement, yet no one is willing to pay for it. That was the message during ...

Foursquare Launches Pinpoint: Cross-Platform, Location-based Ad Targeting
... trove of location data. Now it’s time to make more lucrative use of that. Foursquare announced today the launch of Pinpoint , a cross-platform, ...

In the War Between Apps vs. HTML5, Goko Tries to Make Cross-Platform Gaming Work
Today, Goko is unveiling its platform that helps developers build cross-platform games using HTML5, the controversial technology that many say ...

Resources last updated: 2/17/2016 10:41:13 AM