locale settings and displaying file names in multiple languages

2010-03-03 Thread Dan Naumov
Hello

I have a 8.0/amd64 system serving a few Samba shares. Windows clients
write files to some of these shares using multiple languages: english,
finnish and russian. When accessed from any given Windows client, the
file and directory names all look correct. However when accessing
these same files locally, the file- and directory names that utilize
russian and finnish languages are full of question marks, like this
for russian:

-rw-r--r--  1 nobody  nobody11M Feb 21  2008  ??
-rw-r--r--  1 nobody  nobody   9.2M Feb 21  2008 ??-??
-rw-r--r--  1 nobody  nobody   6.3M Feb 21  2008 ?? ...
-rw-r--r--  1 nobody  nobody   7.6M Feb 21  2008
 
-rw-r--r--  1 nobody  nobody   7.1M Feb 21  2008 ?? 
-rw-r--r--  1 nobody  nobody   7.7M Feb 21  2008 ??

and like this for finnish:

drwxr-xr-x2 nobody  nobody   13 Mar  2 03:20 Turmion K??til??t
- Hoitovirhe
drwxr-xr-x2 nobody  nobody7 Mar  2 03:20 Turmion K??til??t
- Niuva 20
drwxr-xr-x2 nobody  nobody   13 Mar  2 03:20 Turmion K??til??t
- Pirun Nyrkki
drwxr-xr-x2 nobody  nobody   12 Mar  2 03:20 Turmion K??til??t
- U.S.C.H.!

And operating on these files locally is tricky to say the least: for
example I cannot do a: cd  ?? for obvious
reasons, because there is no directory that REALLY has all those
question marks. However, I am still able to browse and operate on
these files using Midnight Commander, somehow it actually works. How
do I need to set the locale settings on the FreeBSD machine so that
all file names are displayed correctly when operated on locally?


- Sincerely,
Dan Naumov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: locale settings and displaying file names in multiple languages

2010-03-03 Thread Svein Skogen (Listmail Account)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03.03.2010 10:24, Dan Naumov wrote:
 Hello
 
 I have a 8.0/amd64 system serving a few Samba shares. Windows clients
 write files to some of these shares using multiple languages: english,
 finnish and russian. When accessed from any given Windows client, the
 file and directory names all look correct. However when accessing
 these same files locally, the file- and directory names that utilize
 russian and finnish languages are full of question marks, like this
 for russian:
 
 -rw-r--r--  1 nobody  nobody11M Feb 21  2008  ??
 -rw-r--r--  1 nobody  nobody   9.2M Feb 21  2008 ??-??
 -rw-r--r--  1 nobody  nobody   6.3M Feb 21  2008 ?? ...
 -rw-r--r--  1 nobody  nobody   7.6M Feb 21  2008
  
 -rw-r--r--  1 nobody  nobody   7.1M Feb 21  2008 ?? 
 -rw-r--r--  1 nobody  nobody   7.7M Feb 21  2008 ??
 
 and like this for finnish:
 
 drwxr-xr-x2 nobody  nobody   13 Mar  2 03:20 Turmion K??til??t
 - Hoitovirhe
 drwxr-xr-x2 nobody  nobody7 Mar  2 03:20 Turmion K??til??t
 - Niuva 20
 drwxr-xr-x2 nobody  nobody   13 Mar  2 03:20 Turmion K??til??t
 - Pirun Nyrkki
 drwxr-xr-x2 nobody  nobody   12 Mar  2 03:20 Turmion K??til??t
 - U.S.C.H.!
 
 And operating on these files locally is tricky to say the least: for
 example I cannot do a: cd  ?? for obvious
 reasons, because there is no directory that REALLY has all those
 question marks. However, I am still able to browse and operate on
 these files using Midnight Commander, somehow it actually works. How
 do I need to set the locale settings on the FreeBSD machine so that
 all file names are displayed correctly when operated on locally?
 
 
 - Sincerely,
 Dan Naumov
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

It's actually an illusion. It happens because ls quite rightly refuses
to spew characters the terminal capabilities doesn't state that can be
displayed, simply because they might send control characters to the
terminal that may or may not corrupt the display. If you use completion
(f.eks. tab), you'll see a ton of \#0x??? or whatnot being the actual
pathname. If you're really intent on displaying the directory, try echo *

//Svein

- -- 
- +---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
- +---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.
- 
 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/
- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuOLcQACgkQODUnwSLUlKS7ZACgkHbTiMS/Nd3Bvt+9TSwaCt3i
xjAAoIA3d9vZg8CnqPTC6R7dWyJ9FtSR
=ig8W
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org