View Full Version : some change in how to read arabic file names on fat(windows)


ErrorMsg
I have something to add to the method that is
mount /dev/hda1 /mnt/win_c -o umask=0,iocharset=utf8,codepage=864
and fstab line should look like this (it is one line)
/dev/hda1 /mnt/win_c vfat default,umask=0,iocharset=utf8,codepage=864 0 0

---------------
Why?
1) umask=0 means all users car read write to the windows partions
but the default is umask=022 which mean only root can write to the windows partion
2) codepage=864 is the arabic codepage (from) , I know it from the kernel source in /usr/src/linux/fs/nls there is a makefile just see it
3) iocharset=utf8 (to) so it's from arabic codepage to utf8 (universal code 8 )
--------------------
recall what were said before by uniball to add to /etc/profile
or ~/.profile or to any executabe in /etc/profile.d/
the following lines
export LC_ALL=ar_EG.UTF-8
(EG means EGYPT )or add (SA means Saudia Arabia)
export LC_ALL=ar_SA.UTF-8
and the line (for both cases)
export CHARSET=ISO_8859-6
export G_BROKEN_FILENAMES=1
note there is no space in SOMETHING = VALUE the true is SOMETHING=VALUE
thanx uniball

uniball
umask=0
not related to the subject: skip!
did you see any difference upon the addition of: codepage=864 ??
If so, Can you please tell me so i can modify the doc.
iocharset=utf8 <-- This is in the article already.

Sure i've wrote ar_EG cause we are Linux Egypt Not Linux SA.
Aure we are all arab and GNU/Linux users and we never say no and we do offer help even if they are not from egypt but My 1ry focus is on Egypt!

I didn't put any spaces in the article, Did i ??

Sure you are welcomed :)

ErrorMsg
Hi Uniball
1st thing ,the codepage=864 i write it in big font to tell that it's the only change i made !!! ( silly me)
I read it in the make file and it must do somthing for arabs
------------
2nd thing,when I said ar_EG mean arabic egypt, I mean to tell what it mean
so people can understand it and store it in there mind not to tell you that I'm from SA ( I'm not from SA)
---------
3rd thing , No you did not put wrong spaces but I meant to tell the linux fresh men that if they put a space it won't work

uniball
Well i didn't mean to say that you are from KSA though you are still welcomed.
I didn't try the codepage thing, I'll try it since i'm still having problem with arabic filenames in the terminal "even mlterm"
maybe it'll help