[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: basic hebrew filenames
- To: "Efraim Yawitz" <fyawitz(at-nospam)actcom.co.il>
- Subject: Re: basic hebrew filenames
- From: "Ehud Karni" <ehud(at-nospam)unix.simonwiesel.co.il>
- Date: Sun, 16 Sep 2001 01:25:00 +0300
- CC: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-reply-to: <Pine.LNX.4.20.0109152304460.351-100000@yawitz.org.il> (messagefrom Efraim Yawitz on Sat, 15 Sep 2001 23:08:03 +0200 (IST))
- Organization: Mivtach-Simon Insurance agencies
- References: <Pine.LNX.4.20.0109152304460.351-100000@yawitz.org.il>
- Reply-to: ehud(at-nospam)unix.simonwiesel.co.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Sat, 15 Sep 2001 23:08:03 +0200 (IST), Efraim Yawitz <fyawitz@actcom.co.il> wrote:
>
> #!/bin/sh
> touch &alef;&alef;&alef;
> touch &bet;&bet;&bet;
> touch ℷℷℷ
>
> but it creates files with names like '\300\300\300' (with the backslashes
> actually in the names, and the characters are off by 32 from their
> ISO-8859 values.) What is going on?
The files are created OK (with the correct Hebrew names). The problem
is with `ls' only (do opendir/readdir). There is a way to workaround
the `ls' problem, pipe it thru `cat' or `more' (you lose your color!).
Here are test results (with your names):
ls -al :
-rw-rw---- 1 ehud general 0 Sep 16 00:46 ???
-rw-rw---- 1 ehud general 0 Sep 16 00:46 ???
-rw-rw---- 1 ehud general 0 Sep 16 00:46 ???
(this is like ls -q is used automaticly)
ls -al | cat :
-rw-rw---- 1 ehud general 0 Sep 16 00:46 &alef;&alef;&alef;
-rw-rw---- 1 ehud general 0 Sep 16 00:46 &bet;&bet;&bet;
-rw-rw---- 1 ehud general 0 Sep 16 00:46 ℷℷℷ
The problem is with the LC/LANG. If you change it to iw_IL ls in all
3 options (nothing, -b, -q) will print the right Hebrew characters
(but it may also change the month name to Hebrew, depending on the
`ls' version, see example below).
LANG=iw_IL
LC=iw_IL
export LANG LC
ls -al (RH 6.2, version 4.0p) :
-rw-rw---- 1 ehud general 0 &samekh;&pe;&tet; 16 00:46 &alef;&alef;&alef;
-rw-rw---- 1 ehud general 0 &samekh;&pe;&tet; 16 00:46 &bet;&bet;&bet;
-rw-rw---- 1 ehud general 0 &samekh;&pe;&tet; 16 00:46 ℷℷℷ
ls (RH 6.0, version 4.0) display month names in English.
Ehud.
--
@@@@@@ @@@ @@@@@@ @ @ Ehud Karni &yod;&nun;&resh;&qof; &dalet;&vav;&he;&alef;
@ @ @ @@ @ Senior System Support &bet;&shin;&het;&mem; &tav;&vav;&kaf;&resh;&ayin;&mem;&bet; &he;&kaf;&yod;&mem;&tav;
@ @ @ @ @ @@ Mivtach - Simon &fnun;&vav;&mem;&yod;&samekh; - &het;&tet;&bet;&mem;
@ @ @ @ @ @ Insurance agencies &het;&vav;&tet;&bet;&lamed; &tav;&vav;&yod;&vav;&nun;&kaf;&vav;&samekh;
Better Safe Than Sorry Tel: +972-3-7966-561 Fax: +972-3-7966-667
http://www.simonwiesel.co.il mailto:ehud@unix.simonwiesel.co.il
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il