ext3 to ufs: filename character encoding woes

2008-08-16 Thread Colin Brace

Hi all,

Using rsync, I copied a collection of MP3s from an ext3 partition on my
Linux F9 box to a UFS partition my FreeBSD 7 box. Many of the song titles
had accented characters, which are now displayed as two question marks (??)
on my FreeBSD system, like this:

Toquinho  Vinícius - Samba da Benção.mp3 --
Toquinho  Vin??cius - Samba da Beno.mp3

Thinking that rsync might be interfering in some way, I checked the man page
and found this option to use:

-8, --8-bit-output  leave high-bit chars unescaped in output

but it makes no difference. I then tried copying a file with scp and then
just cp across an NFS share. In every case, the accents get hosed.

My Linux box is configured for UTF-8:

$ cat /etc/sysconfig/i18n
LANG=en_US.UTF-8

I would have assumed that this would also be the default setting for
FreeBSD, but this appears not to be the case. 

Googling, I came up with instructions for editing /etc/login.conf, so I
added 

:charset=en_US.UTF-8:

under 

default:\

exited the shell and logged in again, but no change. 

What I am missing here?

Thanks.

-
  Colin Brace
  Amsterdam
  http://lim.nl
-- 
View this message in context: 
http://www.nabble.com/ext3-to-ufs%3A-filename-character-encoding-woes-tp19009703p19009703.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ext3 to ufs: filename character encoding woes

2008-08-16 Thread Roland Smith
On Sat, Aug 16, 2008 at 01:26:21AM -0700, Colin Brace wrote:
 Using rsync, I copied a collection of MP3s from an ext3 partition on my
 Linux F9 box to a UFS partition my FreeBSD 7 box. Many of the song titles
 had accented characters, which are now displayed as two question marks (??)
 on my FreeBSD system, like this:
 
 Toquinho  Vinícius - Samba da Benção.mp3 --
 Toquinho  Vin??cius - Samba da Beno.mp3

 My Linux box is configured for UTF-8:
 
 $ cat /etc/sysconfig/i18n
 LANG=en_US.UTF-8
 
 I would have assumed that this would also be the default setting for
 FreeBSD, but this appears not to be the case. 

 What I am missing here?

Add LC_ALL=en_US.UTF-8 to the :setenv in /etc/loging.conf. When using an
X terminal progrm, pick a unicode font, e.g. 
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1

I don't think that the system console has unicode support, you should
probably use a ISO 8859-15 font, e.g. iso15-8x16.fnt, see kbdmap(1).

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp3NrkZQ9jlr.pgp
Description: PGP signature


Re: ext3 to ufs: filename character encoding woes

2008-08-16 Thread Matthew Seaman

Colin Brace wrote:

Hi all,

Using rsync, I copied a collection of MP3s from an ext3 partition on my
Linux F9 box to a UFS partition my FreeBSD 7 box. Many of the song titles
had accented characters, which are now displayed as two question marks (??)
on my FreeBSD system, like this:

Toquinho  Vinícius - Samba da Benção.mp3 --
Toquinho  Vin??cius - Samba da Beno.mp3

Thinking that rsync might be interfering in some way, I checked the man page
and found this option to use:

-8, --8-bit-output  leave high-bit chars unescaped in output

but it makes no difference. I then tried copying a file with scp and then
just cp across an NFS share. In every case, the accents get hosed.

My Linux box is configured for UTF-8:

$ cat /etc/sysconfig/i18n
LANG=en_US.UTF-8

I would have assumed that this would also be the default setting for
FreeBSD, but this appears not to be the case. 


Googling, I came up with instructions for editing /etc/login.conf, so I
added 


:charset=en_US.UTF-8:

under 


default:\

exited the shell and logged in again, but no change. 


What I am missing here?


 # cap_mkdb /etc/login.conf

perhaps?  You might also want to add a :lang=en_US.UTF-8: item to the
default entry in login.conf -- that will result in $LANG being set in
the environment when you next log in.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature