Results 1 to 4 of 4
-
01-18-2012, 04:01 PM #1
- Member Since
- Jan 18, 2012
- Posts
- 2
File editing via shared folder, bug?I have file sharing enabled from Mac to PC. When I edit a file on the PC (from the Mac's shared folder), and then save the file, the text is messed up on the Mac. This doesn't happen when I move a file to Mac via USB.
FOR EXAMPLE:
I create a file "abc.txt" on Mac. It contains the following text:
abc
123
asd
456
I then put it in the shared folder.
I then go to the PC and open it (via shared folder). I remove "asd" so it looks like this:
abc
123
456
I save it and go back to Mac.
On Mac, it looks like this:
abc
123
456
456
So not only does Mac remove "asd", it also repeats the last line.
I'm stumped..
-
01-18-2012, 04:09 PM #2
- Member Since
- Feb 26, 2010
- Location
- Rocky Mountain High, Colorado
- Posts
- 2,116
- Specs:
- 1.8 GHz i7 MBA 11" OSX 10.8.2
What are you using to edit the file on either the Mac or the PC? When it comes to text DOS type programs put a cr/lf at the end of line - whereas *NIX does something different.
How to Transfer Text Files Between Linux, Macintosh, Microsoft Windows Operating Systems
Vim is available across platforms and handles various text files well.
There is also a command called dos2unix that helps fix these kinds of issues. You can get it from macports or fink - I don't think it comes by default on the Mac because my install is in /opt/local/bin - which usually means a macport install.
The MacPorts Project -- Home
-
01-18-2012, 04:19 PM #3Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
-
01-18-2012, 04:27 PM #4
- Member Since
- Jan 18, 2012
- Posts
- 2
I'm using Notepad++ on PC and Xcode / TextEdit / TextWrangler on Mac; all three of which produce the same bug.
Thanks for your feedback, I'll work on it and post my results afterwards.
One thing to note is this also happens over multiple lines. I deleted a large chunk of HTML from another file. It deleted the same chunk on Mac, but it also replicated the same number of lines from the bottom of the code and then added those lines to the bottom of the code.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Editing shared calendar events - Mavericks
By JanL27 in forum macOS - Operating SystemReplies: 1Last Post: 11-14-2013, 09:49 AM -
shared folder
By Chris57701 in forum macOS - Operating SystemReplies: 1Last Post: 10-25-2009, 07:05 PM -
Transmission - Which folder is my shared folder?
By davedave in forum macOS - Apps and GamesReplies: 3Last Post: 08-11-2008, 05:04 AM -
Shared folder ??? help
By MACer in forum Internet, Networking, and WirelessReplies: 3Last Post: 05-16-2006, 03:54 AM -
Where is the shared folder???
By frank in forum Switcher HangoutReplies: 1Last Post: 10-10-2003, 04:56 PM