File and folder names containing "Ğ ğ – Ü ü – İ – ı – Ö ö – Ş ş" ?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646
Rep:
Hi sertmusluman, you have saved the files with an other locale than your current one. What does "locale" output as your current setting?
You can then use convmv http://www.j3e.de/linux/convmv/ to convert files to your current locale, but test it on a copy before you might break something.
Example (just call convmv without any option to see the help) to convert from iso8859-9 to utf8 encoding:
Code:
convmv -f iso8859-9 -t utf8 -r
If the testrun is ok, you call it with added "--notest" to actually apply the changes.
How can i view and edit my locale settings? I have installed Slack with the full installation option consisting international language support of KDE. I do not have an extra slackware os for performing slack experiments, but i worths to try your instructions. I want also to create files in an encoding comprises related letters above, will it be possible after this process?
These are the files from my windows days. I saved them on an external hard drive. If i connect this drive to a windows machine, file names are seen in the right form.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646
Rep:
Ah, that might be even easier. Try to add "utf8" as mount option. For example you can try it from command line like this:
Code:
# for FAT32:
mount -t vfat -o utf8 /dev/sdb1 /mnt/tmp
# or for NTFS refer to MrGoblin's post
Adjust the device name and the mount point as you like. This helps me to use German special characters that were written from Windows and write special characters on it that can be read from Windows.
EDIT: forgot ntfs option. MrGoblin beat me while correcting
Last edited by titopoquito; 12-20-2008 at 07:09 PM.
Or if you want to change the locale on the machine...
There are several threads on this forum that can help if you want to change the locale for the whole machine, or for your X session, for example this one here.
Or if you just want to see the files mRgOBLIN's mount info should help.
On "/dev/sda4" with above options i can not see the files which are named with Turkish characters.On "/dev/sda7" with above options i can see the files and folders but names are in malformatted form. Files are working, problem is only in their names.
Here is my fstab from my Pardus installation, since it fully supports Turkish it should give a hint in the right direction. For Turkish characters in the console you probably need to set the language variables in /etc/profile (AFAIK Slack now has UTF-8 console support, so that part shouldn't be a problem).
I integrated above line in to my fstab with required modifications then again i could not use special Turkish characters (ş,Ö,ğ,ü ...) for naming files and folders.
I also changed "/etc/profile.d/lang.sh" file as i below;
Code:
.
.
.
# en_US is the Slackware default locale:
export LANG=tr_TR
.
.
.
Modifiying "lang.sh" file, naming files and folders with special Turkish characters on ext3 partitions was enabled, but i can not do it on ntfs and fat partitions.
How can i do this for USB drives? Is that possible to name files and folders with special Turkish characters on USB drives?
Now my problem was solved for both native linux partitions and windows partitions, but still i can not convert the names of previously saved datas into the right form? Do i have to edit all data manually? (Very long time required for this.)
USB sticks use FAT filesystem, so it should be possible. As for the other problem you mentioned, I didn't quite understand what it is. Are you saying that you can create new files with special characters but the preexisting files still show wrong? If so, were those files created using utf8 really? There's also the ISO-8859-9 encoding for the Turkish alphabet and I remember using that to mount my Windows vfat partitions some years ago (I think you also needed codepage=857 or something like that). I'm not sure but at least on recent Windows (or on ntfs) utf8 should be the locale.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.