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 05-04-2009, 08:50 PM   #1
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Rep: Reputation: 0
not showing files or folders with special characters, like umlauts


Hi again! I'm using the newest version of Slackware, and I'm almost all set up, but I noticed that any files or folders with special characters, like umlauts, are simply not showing up at all (no Motorhead or Blue Oyster Cult). This isn't just in Thunar, but in terminal as well. I've changed my partition in fstab to nls=utf8, but then I get an error and that partition does not mount. I've also changed my locale to en_US.utf-8, but that does nothing either. I also have a bunch of songs in Japanese. Please help! I'd rather not go back to Ubuntu...
 
Old 05-04-2009, 09:50 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
AFAIK, "nls=utf8" is generally only used with filesystems like fat and ntfs. Is your disk using one of these?

I think you need to explain your setup in a little more detail, as well as what you've tried and the effects you've had. AFAIK changing the locale is usually the way to do it. But it sounds like there's something else going on here. Perhaps you don't have the proper unicode fonts installed, for example.
 
Old 05-04-2009, 10:17 PM   #3
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Okay, I'll try to explain in more detail. (Thanks for the tip about nls--that explains why it didn't work, although I had read a post in another forum that suggested doing that.)

I'm actually not using official Slackware but the Slamd64 port, although I don't think that should make a difference. I did the full install, just without KDE, although I wouldn't bet my life on it...I don't use Windows, so I'm using ext3 for my file systems.

I'm confused because it's not as if I'm getting weird characters, like question marks for umlauts--the files are simply not there. I imagined that if I had the wrong font, I would just get errors and not have the files vanish.

Here's the output when I enter locale, if that helps.

Code:
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
The problem happens in both console and Thunar.

I'll try using a unicode font, like Terminus. Any other suggestions? I'm pretty much a n00b when it comes to this locale business, because in Ubuntu this was never a problem.

If there's any other information you need, please ask.

UPDATE: I tried Terminus, and it doesn't make a difference...

Last edited by pinknyunyu; 05-04-2009 at 11:07 PM. Reason: Update
 
Old 05-04-2009, 11:13 PM   #4
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Unicode works properly...I tested it using the directions here http://www.vcn.bc.ca/~dugan/setting-up-slackware.html
 
Old 05-05-2009, 08:59 AM   #5
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
I realize that my last post was misleading...

Unicode works, but my files still aren't showing up.

Because I didn't install KDE, I didn't install KDEI either. Does anyone think that installing KDEI would help? Any other suggestions?
 
Old 05-05-2009, 10:50 AM   #6
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Try adding your desired locale to /etc/profile.d/lang.sh

I set mine to be en_CA.utf8 (not UTF-8) and my unicoded filenames work fine.
 
Old 05-05-2009, 03:12 PM   #7
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the suggestion, but I tried it and it didn't work. Still no files.
 
Old 05-05-2009, 04:30 PM   #8
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
This probably is more a mount problem than a locale problem. What does your fstab entry look like?
 
Old 05-05-2009, 06:02 PM   #9
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Perhaps your file names are nor UTF encoded?

I'm also using ext3 and to have non-ASCII filenames, I modified lang.sh and nothing else to get things working -- never touched /etc/fstab for example.

Now I have - in KDE and console - all sorts of characters working (including accented Latin, Cyrillic and Arabic).
 
Old 05-05-2009, 06:31 PM   #10
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
General Failure--here's my fstab.
Code:
/dev/sda1        swap             swap        defaults         0   0
/dev/sdb1        swap             swap        defaults         0   0
/dev/sda2        /                ext3        defaults         1   1
/dev/sda3        /home            ext3        defaults         1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
Yes, I realize that I don't need 2 swap partitions...I'm on my way to changing that (which shouldn't be hard, because it's on the other hard drive).

As I state earlier in the post, I tried using "defaults,nls=utf8" for sda3, and that just made that partition refuse to mount, but I'm probably doing something wrong.

brixtoncalling--I modified lang.sh to en_US.utf8, but that didn't work. How would I be able to tell if my files are UTF encoded or not? They're not text files, but rather the names of directories and of mp3s (and their metadata). Ubuntu could see them without any problem.

Everyone, thanks for your help...I really really want to be able to use Slackware, and I think that this may be the last hurdle.
 
Old 05-05-2009, 08:29 PM   #11
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Can you also show us your fstab when booting Ubuntu, to check how the drives were mounted when the files were created?
And tell us the partition where the files are located (I guess on /dev/sda3 - /home, but better be sure...)
 
Old 05-05-2009, 09:36 PM   #12
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
The abridged version of my recent adventures in Linux: I don't have Ubuntu on my computer at this second; I wanted Slackware to be on my new hard drive (/dev/sda), which is where Ubuntu was, so I reinstalled Slackware on that hard drive. But when I had Ubuntu on there, it could see all my files correctly (on /dev/sda3); I didn't reformat it. Before that, however, I totally wiped all my hard drives clean, because I wanted to do a fresh install of Jaunty Jackalope, the newest Ubuntu. I moved all my files to an external hard drive, which I don't believe is a linux partition, and then transferred them back onto my computer.

Yes, the files in question are located on /dev/sda3.
 
Old 05-05-2009, 10:01 PM   #13
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
hmmm... This external hard drive, was it by any chance a Windows formatted drive, NTFS?
Do you still have that external drive with the files on it?
 
Old 05-05-2009, 10:09 PM   #14
pinknyunyu
LQ Newbie
 
Registered: Nov 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Yes, I still have the external hard drive, and there's a very good possibility that it's NTFS--it's from before I started even using Linux. How would I check?
 
Old 05-05-2009, 10:21 PM   #15
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Can you mount the external drive under Slackware?
Hint: If it doesn't mount automagically in Thunar etc., plug it in and check the end of /var/log/messages to see how it is recognized (like /dev/sdx etc...). Then mount with:
mount -t ntfs-3g -o locale=en_US.utf8 /dev/sdx /mnt/tmp
(you might have to experiment with the locale settings)

If yes, do all the files show up?
If yes, try to copy one file and check if it shows up with the right characters (accents, umlaut, etc...)

If it works with one file, try copying more...

Last edited by niels.horn; 05-05-2009 at 10:22 PM.
 
  


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
Need to rename files and folders with invalid characters in the names laureynsr Linux - Newbie 5 04-01-2009 03:13 PM
Copying files with special characters cornish Linux - Newbie 13 12-21-2007 11:22 AM
Searching for files with special characters Yig Linux - Newbie 4 11-08-2007 05:53 PM
Amarok and special characters (umlauts) Fonk Linux - Software 0 03-13-2005 03:32 PM
WinSCP and the german umlauts (special characters like ä ö ü) Shivan Linux - Networking 0 12-15-2003 01:05 PM

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

All times are GMT -5. The time now is 03:55 AM.

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