Subject: non-english file names
To: None <tech-userlevel@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-userlevel
Date: 03/25/2004 13:23:52
system: NetBSD IANZAG 1.6.1 NetBSD 1.6.1 (Ianzag) #4: Tue Mar  2 20:32:41 N=
OVT=20
2004 ianzag@ianzag:/usr/src/sys/arch/i386/compile/Ianzag i386

I have several local file systems formated as FAT32 and NTFS/Win2k. The=20
problem is that i cannot access files or directories located on this file=20
systems if entry has for example Cyrillic/Russian name. ls output looks lik=
e:

=2D--cut---
bash-2.05b$ cd /disk/archive/ARCHIVE/MUSIC/Russian/
bash-2.05b$ ls -l
ls: ?=D0=9B=D0=A5=D0=B3: No such file or directory
ls: =D0=91=D0=B8=D0=B4=D0=AD: No such file or directory
ls: =D0=93=D0=B4=D0=B4=D0=B5=D0=B3=D0=B8=D0=A5: No such file or directory
ls: =D0=9D=D0=B3=D0=AA=D0=99=D0=9B=D0=B3~1: No such file or directory
ls: =D0=AB=E2=95=9C=D0=B8=D0=9B=D0=AC=D0=9A~1: No such file or directory
total 192
drwxr-xr-x  1 root  wheel  16384 Sep  8  2003 24E6~1
drwxr-xr-x  1 root  wheel  16384 Sep  8  2003 2FCB~1
drwxr-xr-x  1 root  wheel  16384 Sep  8  2003 3084~1
drwxr-xr-x  1 root  wheel  16384 Sep  8  2003 3151~1
drwxr-xr-x  1 root  wheel  16384 Sep  8  2003 A0E2~1
drwxr-xr-x  1 root  wheel  16384 Dec 13 18:19 Butterfly Temple
=2D--cut---

=2E...so non-ASCII names are completely messed up. Of course all file syste=
ms=20
are in correct state and fine accessible from Win2k running on the same=20
machine.

AFAIU the problem happens due to i cannot specify "locale" for munted file=
=20
system. The questions are:

1) Is there some sollution that allows me to access non-ASCII files from lo=
cal=20
file system under 1.6.1 || 1.6.2 ?

2) What about -current ? Don't remember where, but i heard that -current=20
already has some workaround for such things.

Any ideas ?

// wbr