LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2008, 01:11 PM   #1
Mirlyn
LQ Newbie
 
Registered: Sep 2008
Distribution: Debian
Posts: 3

Rep: Reputation: 0
newline characters in folders


Greetings

I have an issue with newline characters in both names of files and folders.

Setup:
Windows clients (mix of XP and Server 2003) rsync using cygwin to a Debian Etch box nightly.

Some clients create foldernames with apparently newline characters. ls -l on the linux box shows "folder?". ls -b shows "folder/r".

What is causing these? Is there a character set or something that needs to be defined? It only happens when it creates folders and files, not the contents of the files themselves. If I pre-create the folder/file (sans-gremlin characters) on the target before syncing, it will ignore the existing folder/file and create its own with the character at the end.

Thoughts? Is this a problem on the Windows machine or rsync itself?
 
Old 09-03-2008, 01:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

And welcome to LQ!

Never came across an issue like that before, but
one thing springs to mind: Cygwin, on install,
asks you what kind of line-ends to use, Unix or
DOS; what did your guys choose?



Cheers,
Tink
 
Old 09-03-2008, 01:40 PM   #3
Mirlyn
LQ Newbie
 
Registered: Sep 2008
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply!

I don't recall it asking on any of the machines.

Is there a config file to view/change that? The contents of the file have the correct line feeds; its the file and folder names themselves that are screwy. Like the file creation mechanisms are wrong.
 
Old 09-03-2008, 01:44 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Is there a config file to view/change that?
Sorry, can't answer that: I don't use cygwin, I've only
helped poor windows users install it on the odd occasion.



Cheers,
Tink
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
VI replacement: newline for newline not working! jhwilliams Linux - Software 3 08-16-2007 06:11 PM
Can't see folders with foregin characters? Daedra Slackware 4 07-16-2007 11:12 PM
Any tool to insert a newline each X characters in a file? neoAKiRAz Programming 5 05-09-2007 07:15 PM
How to modify the names of files and replace characters with other characters or symb peter88 Linux - General 2 12-10-2006 03:05 AM
Capitalize folders with less than 4 characters bendeco13 Linux - General 9 10-07-2005 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration