LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-21-2008, 06:30 AM   #31
sertmusluman
Member
 
Registered: Jan 2006
Location: Canakkale, Turkiye
Distribution: Slackware 12.2
Posts: 53

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by titopoquito View Post
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.
 
Old 12-21-2008, 06:43 AM   #32
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
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

Code:
export LANG="tr_TR.UTF-8"
export LC_ALL="tr_TR.UTF-8"
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...
 
Old 12-21-2008, 06:46 AM   #33
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
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
 
Old 12-22-2008, 11:58 AM   #34
sertmusluman
Member
 
Registered: Jan 2006
Location: Canakkale, Turkiye
Distribution: Slackware 12.2
Posts: 53

Original Poster
Rep: Reputation: 15
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

Code:
sinem@sinemg:~/Desktop/convmv-1.14$ ./convmv -f iso8859-9 -t utf8 -r * --notest
mv "./Nil�fer - 08 - Ans�z�n.mp3"       "./Nilüfer - 08 - Ansìzìn.mp3"
Ready!
sinem@sinemg:~/Desktop/convmv-1.14$
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.
 
Old 12-22-2008, 01:23 PM   #35
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
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.
 
Old 12-22-2008, 02:40 PM   #36
sertmusluman
Member
 
Registered: Jan 2006
Location: Canakkale, Turkiye
Distribution: Slackware 12.2
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Ilgar View Post
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.
 
Old 12-22-2008, 03:21 PM   #37
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,646

Rep: Reputation: 146Reputation: 146
Great to hear
 
Old 12-22-2008, 03:37 PM   #38
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
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?

Last edited by Jeebizz; 12-22-2008 at 03:41 PM.
 
Old 12-22-2008, 04:24 PM   #39
sertmusluman
Member
 
Registered: Jan 2006
Location: Canakkale, Turkiye
Distribution: Slackware 12.2
Posts: 53

Original Poster
Rep: Reputation: 15
Quote:
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#
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
renaming file names beginning with "-" prashln Linux - General 5 05-01-2010 01:47 AM
how to get rid of " " spaces in file names in a directory lleb Linux - General 7 08-09-2006 04:08 PM
How to issue "ls" command start with the largest file size in a folder? fjkum Linux - Newbie 5 07-27-2006 03:28 AM
How can ı open ".exe" extended files ? bluesky2_1986 Linux - Newbie 7 07-19-2006 10:47 AM
Cannot "Copy To" .jpg file to wallpaper folder LeanPudLou SUSE / openSUSE 5 11-08-2004 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration