New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Internet, Networking, and Wireless Discussion of networking, internet, and wireless including Apple's Airport products.

File editing via shared folder, bug?


Post Reply New Thread Subscribe

 
Thread Tools
gatzkerob

 
Member Since: Jan 18, 2012
Posts: 2
gatzkerob is on a distinguished road

gatzkerob is offline
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..
QUOTE Thanks
IvanLasston

 
IvanLasston's Avatar
 
Member Since: Feb 26, 2010
Location: Rocky Mountain High, Colorado
Posts: 2,116
IvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to beholdIvanLasston is a splendid one to behold
Mac Specs: 1.8 GHz i7 MBA 11" OSX 10.8.2

IvanLasston is offline
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
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,827
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
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
QUOTE Thanks
gatzkerob

 
Member Since: Jan 18, 2012
Posts: 2
gatzkerob is on a distinguished road

gatzkerob is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« Actiontec Router | Help wireless dongle »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
getting zipped files out of emails into a folder Corticus OS X - Operating System 0 12-26-2011 02:33 AM
FTP on mac with shared folder as home dir the OS X - Apps and Games 0 03-15-2010 12:23 PM
shared folder Chris57701 OS X - Operating System 1 10-25-2009 07:05 PM
Using a shared folder as a "Network" jherzog OS X - Operating System 3 03-03-2007 07:54 AM
Where is the shared folder??? frank Switcher Hangout 1 10-10-2003 04:56 PM

All times are GMT -4. The time now is 02:32 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?