Results 1 to 4 of 4
  1. #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..

  2. #2

    IvanLasston's Avatar
    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

  3. #3

    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,782
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    Quote Originally Posted by IvanLasston View Post
    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.
    I know the operating systems represent line and carriage returns differently but would this cause the last line to repeat?
    Important Links: Community Guidelines : Use the reputation system if you've been helped.
    M-F Blog :: Write for the blog
    Writing a Quality Post

  4. #4


    Member Since
    Jan 18, 2012
    Posts
    2
    Quote Originally Posted by IvanLasston View Post
    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
    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

  1. Editing shared calendar events - Mavericks
    By JanL27 in forum OS X - Operating System
    Replies: 1
    Last Post: 11-14-2013, 10:49 AM
  2. shared folder
    By Chris57701 in forum OS X - Operating System
    Replies: 1
    Last Post: 10-25-2009, 08:05 PM
  3. Transmission - Which folder is my shared folder?
    By davedave in forum OS X - Apps and Games
    Replies: 3
    Last Post: 08-11-2008, 06:04 AM
  4. Shared folder ??? help
    By MACer in forum Internet, Networking, and Wireless
    Replies: 3
    Last Post: 05-16-2006, 04:54 AM
  5. Where is the shared folder???
    By frank in forum Switcher Hangout
    Replies: 1
    Last Post: 10-10-2003, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •