Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 23:09:56 +0000
From:      Chris Rees <utisoft@googlemail.com>
To:        Chuck Swiger <cswiger@mac.com>, Daniel Leal <dleal@webvolution.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: accents in file names
Message-ID:  <b79ecaef0902121509gb97363fha6a9da9e309efa3d@mail.gmail.com>
In-Reply-To: <9BDCF06E-713F-4627-B8E6-8D15D5F3F120@mac.com>
References:  <499498A4.4000103@webvolution.net> <9BDCF06E-713F-4627-B8E6-8D15D5F3F120@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/2/12 Chuck Swiger <cswiger@mac.com>:
> On Feb 12, 2009, at 1:46 PM, Daniel Leal wrote:
>>
>> is there a way to have a freebsd system with file names with accented
>> words. Like "fil=E9.txt" instead of "file.txt". Now if I copy a file wit=
h an
>> accented letter to my freebsd box, the accented letter simply disappear.
>
> UFS supports 8-bit characters except for "/" and "\0", but you also need =
to
> run a terminal with UTF8 support and use a correct font to view such thin=
gs.
>  Perhaps this might give you some insight:
>
>  http://www.cl.cam.ac.uk/~mgk25/unicode.html
>
> Note that other file systems have more comprehensive Unicode support:
>
>  http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits
>
> Perhaps I'm biased, but I've long been of the opinion that the Mac platfo=
rm
> with HFS+ has very good internationalization support.
>
> Regards,
> --
> -Chuck
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>

Yeah, I love the way you're allowed a / in filenames on the Mac. Makes
me snigger...

How are you copying the files over?

On my Mac:

[chris@zeus]~% touch bluurgh\303\251    #\303\251 is what comes up
when I make an =E9
[chris@zeus]~% ls
5500plugin.tar          NetBeansProjects/       hist200.txt
Applications/           Pictures/               hist300.txt
Desktop/                Public/                 hist600.txt
Documents/              Rips/                   hist900.txt
Library/                Sites/                  public_html@
Movies/                 bluurghe??              xcodeJava/
Music/                  drop/
[chris@zeus]~% ls |grep bluu
bluurgh=E9
[chris@zeus]~%

Look! grep supports that character, but ls doesn't show it properly...

so scp works fine...

[chris@zeus]~% scp bluurghe\314\201 amnesiac.bayofrum.net:.
bluurgh=E9                                    100%    0     0.0KB/s   00:00
[chris@zeus]~% ssh amnesiac.bayofrum.net 'ls |grep blu'
bluurgh=E9
[chris@zeus]~% ssh amnesiac.bayofrum.net 'rm blu*'

Samba seems to do strange things though; copied it over with samba

[chris@zeus]~% ssh amnesiac.bayofrum.net 'ls |grep blu'
bluurgh=E9*
[chris@zeus]~%

What's with the *?

and after nfs:


[chris@zeus]~% sudo mount -t nfs amnesiac.bayofrum.net:/usr/home/chris
Applications
[chris@zeus]~% cp bluurghe\314\201 Applications/
[chris@zeus]~% ssh amnesiac.bayofrum.net 'ls |grep blu'
bluurgh=E9
[chris@zeus]~%

What?? Why does it work OK with nfs and scp, but not samba?

Really wouldn't bother unless you spend your time exclusively in GUI
environments, just seems a real hassle.

Chris

--=20
R< $&h ! > $- ! $+	$@ $2 < @ $1 .UUCP. > (sendmail.cf)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b79ecaef0902121509gb97363fha6a9da9e309efa3d>