LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2009, 03:01 PM   #1
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Rep: Reputation: 15
Special characters in reiserfs


Hi,
I want to name files and folders with special characters like "", "" or "". The way my /etc/fstab is specified it can't do that. how can I do it?

cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda2 / reiserfs notail 0 1
/dev/hda3 /home reiserfs defaults 0 2
/dev/hda1 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

thanks
 
Old 02-26-2009, 03:19 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Ummm ... that's not a file-system issue ... I'm using Reiser here.
Code:
tmp$ mkdir aa
tmp$ ls -lt                                             
total 52
drwxr-xr-x 2 tink users   48 2009-02-26 09:18 aa
Check your locale
 
Old 02-26-2009, 03:24 PM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
That is strange! I'm French, and I've used all sorts of French characters in many filenames since years. (I use ReiserFS by the way, but I think this is totally unrelated.)
I even created a 日本語 ("japonais" en franais) folder on one my partitions, and linked it on my desktop without any problem; even the command-line deals with it fine.

What is your distribution, and what makes you think you cannot use such characters?

Yves.
 
Old 02-26-2009, 04:00 PM   #4
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
Dudes, i am sorry. is not a file system problem.
I just realized that is something with rsync.
Rsync daemon is running on a Debian 4 machine.
Rsync clients are running in windows machines.
when I send files to the debian server it desconfigures filenames.

rsync -Cavz --delete ... for the file "Estaes de trabalho" in windows transforms into "Esta??es de trabalho" in Debian server.

Any clues?
 
Old 02-26-2009, 04:21 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
UTF-8 on windows, iso-8859-? on Debian?
 
Old 02-26-2009, 08:19 PM   #6
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
Didn't get it
 
Old 02-26-2009, 10:15 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Which part?

Have a read of
man iconv
man rsync
/iconv

Find out what locale the debian machine uses
env | egrep "LC|LANG"
 
Old 02-27-2009, 12:33 PM   #8
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
# env | egrep "LC|LANG"
LANG=pt_BR.UTF-8
LANGUAGE=pt_BRt:en

I understood that iconv converts the hole file not its filename. is that correct?
 
Old 02-27-2009, 01:01 PM   #9
brgsousa
Member
 
Registered: Aug 2007
Location: Salvador, Brazil
Distribution: Debian, Ubuntu
Posts: 185

Original Poster
Rep: Reputation: 15
thanks everyone, I found the solution here:
http://phaq.phunsites.net/2006/10/28...c-and-unicode/
 
Old 02-27-2009, 04:13 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Excellent work, glad you got that sorted ;}


Sorry I didn't get a chance to respond sooner,
time-zones, you see :D

Adeus,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Characters SimeonV SUSE / openSUSE 14 07-07-2006 02:29 PM
special characters greenbox Linux - Software 9 12-23-2005 08:33 PM
An odd reiserfs booting problem in a special situation may be about SUSE10's reiserfs ayal Linux - Newbie 7 11-15-2005 08:36 AM
Special characters consty Programming 3 08-07-2005 06:53 AM
using special characters one_ro Mandriva 5 11-04-2004 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 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