Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6333451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:27:54+00:00 2026-05-24T18:27:54+00:00

We primarily develop our PHP application on a Windows environment and have stored our

  • 0

We primarily develop our PHP application on a Windows environment and have stored our text source files in PC / ANSI.

However now, a developer is joining us who uses a Mac platform and we’re running into issues creating ‘patches’ on his machine. When he makes any changes and does:

svn diff > patchfile.patch

he generates a patch file that indicates that each and every line of the source code file has been modified (which isnt the case obviously).

I tried saving a test ANSI file as:

PC / UTF-8 (using UTFCast Express which I writes the BOM by default)
PC / UTF-8 (using Notepad++ "Encoding > Convert to UTF-8" - which writes the BOM)

As well as:

PC / UTF-8 (using Notepad++ "Encoding > Convert to UTF-8 without BOM")
PC / UTF-8 (using Notepad++ "Encoding > Encode in UTF-8 without BOM")

For ALL of these cases, whenever he makes a change and does an svn diff > patchfile.patch, it outputs all the lines as if all the lines have been changed!

[we tried doing “svn diff -x -p > patchfile.patch” for the last 3 as well – no difference]

Incidentally, the files generated with the last two options continue to show up as ANSI on my PC machine. Both do not seem to modify the file at all and doing an ‘fc’ (file comparison) from the DOS prompt does not reveal any difference.

What encoding should I be using for cross-platform development?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:27:54+00:00Added an answer on May 24, 2026 at 6:27 pm

    Not a character encoding issue, but a line-ending issue. Windows uses CR-LF (13/10), Macs now use (unix style) LF only (10).

    Set the subversion property svn:eol-style=native on the relevant files to make it work properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We primarily use an ASP.NET environment at work. Right now I'm building an application
Despite primarily being a windows user, I am a huge fan of rsync. Now,
I am using the MiKTeX 2.8 distibution for Windows. We develop software primarily, and
In the QT application we develop we need to display several 'Viewer windows' (to
I have been given the task to design and develop a web application for
My application is primarily a client for a server that really doesn't have a
Primarily I've done basic (novice level) software development on a Windows machine, but I've
My background is primarily as a Java Developer, but lately I have been doing
I am looking for resources to develop HTML5 apps for iphone primarily. Are their
We need to develop quite a powerful web application for an investment bank. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.