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.
First, I'm not sure if you have to use it the other way round (-f utf8 -t iso8859-9) since you use tr_TR locale and not tr_TR.utf8.
Second: You use a very old version of convmv. Get the latest version and it will understand the -r option. Furthermore you may break your special characters, newer versions work around some bugs in perl that else could lead to some funny characters. Version 1.14 is the current package.
Ok, i am going to try other possible solutions such as changing locate to UTF-8 and upgrading "convmv". Thank you very much.
You're trying to view the filename in the console. Charset support used for mounting partitions and the console charset are different things. You need UTF support in the console, too. I think you should at least have
in /etc/profile. Also, I'm not sure if it's needed too but the Slackware installer asks if you want a utf console or not (the default is, not). If you have the line
Code:
append=" vt.default_utf8=0"
in lilo.conf then trying changing that 0 to 1 and re-run lilo, reboot. Maybe this is unnecessary, I don't know, just guessing...
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646
Rep:
If you want to change to utf8 you have to
1) change /etc/profile.d/lang.sh to use tr_TR.utf8
2) add "start_unicode" at the end of /etc/rc.d/rc.local
EDIT: 3) add the LILO changes Ilgar mentioned, thanks Ilgar
I think you don't have to change that. You can probably easily change the file names to iso8859-9 and later, if you at some time change to uft8, convert them again to utf8. Man pages and some command line tools don't work good with utf8, but in the everyday work I notice no big problems. So it's up to you, good luck with that
Thank you very much ilgar and titopoquito. I configured my Slack to use UTF-8 encoding with your instructions. Now i can get titopoquito's output from the "abc.tar.gz" archive file, i.e. extracted file is in UTF-8 encoding and it is readable.
Then i used "convmv-1.14" to convert encodings of previously saved datas from iso8859-9 to utf-8 as in below, it works perfect
But changing encoding to "tr_TR.UTF-8" yielded to some problems. For example menu language of some programs such as gimp, pidgin, wicd and ristretto changed to Turkish from English. Although my default language for KDE is English, menus of these programs are in Turkish. Other programs speak English, but some programs like these speak Turkish. Xfce also speaks Turkish now. Another problem that i have noticed is in Firefox add-ons. Downthemall still speak English but does not save files. When i want to download a file, firefox requests which method i want for download (Downthemall, flashgot, default firefox download manager) in a Turkish speaking window (but firefox's menus are in English, only this request window is in Turkish). Downthemall was saving and working perfectly while request window was in English speaking days before changing encoding. Console language changed to Turkish too.
I want Slack to have Turkish special character support while creating files and folders without changing default language to Turkish for some programs that i mentioned about above and want console to speak English with Turkish special character support for operating on Turkish named files. Is it possible?
Last edited by sertmusluman; 12-22-2008 at 01:07 PM.
Desktop environments will get the language setting from the LANG variable usually. Maybe you can revert LANG to English but just make the console locale utf8.
Desktop environments will get the language setting from the LANG variable usually. Maybe you can revert LANG to English but just make the console locale utf8.
Thanks, i changed related entry in "/etc/profile.d/lang.sh" as "export LANG=en_US.utf8". Now my problems were completely solved. I can operate on files named with Turkish special characters on console, programs all speak English now and so does console. I can create files and folders with this special characters also.
Last edited by sertmusluman; 12-22-2008 at 03:03 PM.
I don't mean to completely hijack this thread, but I have more or less a comment, and then a slight question. My comment is that I would have thought by now that UTF would have been adopted much more by now, due to it's nature as an all encompassing way to represent pretty much every single written script known, or am I missing the point? I still see ISO being used a lot more than UTF, which in my view seems almost pointless, that is if UTF's nature is to cover all characters from all languages.
Which now brings me to my question. How does one preserve filenames on a CD/DVD rather than a hard drive? I see no option for UTF under K3B, just cp and ISO level encodings. What if I have a multitude of different files in different languages? Which I do have at least some music files, in Chinese and Japanese, not to mention English, and some German too. What would be the best way in preserving those filenames on a disc?
[edit]
Also the OP's language-set. What if he wants to burn a disc with Turkish filenames, how would he do it?
What if he wants to burn a disc with Turkish filenames, how would he do it?
I tried to make a cd-image consisting a file named with special Turkish characters. No errors occured during image creation period. But i do not know what would be, if i used a real physical CD.
Code:
sinem@sinemg:~$ su
Password:
root@sinemg:/home/sinem# cd Desktop
root@sinemg:/home/sinem/Desktop# mount -o loop kkk.iso /mnt/flash
root@sinemg:/home/sinem/Desktop# cd /mnt/flash
root@sinemg:/mnt/flash# ls
şğÜÇİÖĞı
root@sinemg:/mnt/flash#
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.