Bug 297607 - ntfs-3g locale problem
Summary: ntfs-3g locale problem
Status: VERIFIED FIXED
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Alpha 7
Hardware: i686 openSUSE 10.3
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Thomas Fehr
QA Contact: E-mail List
URL:
Whiteboard:
Keywords: dogfood, qa
Depends on:
Blocks:
 
Reported: 2007-08-05 13:14 UTC by Ákos Szőts
Modified: 2007-08-09 21:44 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ákos Szőts 2007-08-05 13:14:10 UTC
NTFS-3G driver's default entry in the fstab file:
/dev/sda6 /windows/D ntfs-3g users,gid=users,umask=0002,nls=utf8 0 0

With this setting only those files and folders are shown which contain no non-English character.

For example, if I have a folder named "Árvíztűrő tökürfúrógép" with full of Hungarian characters, the driver doesn't show it by default.

To fix this problem, you should append after "nls=utf8" the locale, eg. "locale=hu_HU.UTF-8".
The official FAQ in this question: http://www.ntfs-3g.org/support.html#locale

I think you can use the $LANG shell variable.
Comment 1 Thomas Fehr 2007-08-06 11:25:42 UTC
No problem to add that locale string, but I have a question.
Does that mean that if someone is using English as installation language of
linux (and therefore will have "locale=en_US.UTF-8" added to fstab options) 
he will not be able to see files with e.g. German umlauts (äöu) on an ntfs
filesystem.
Comment 2 Thomas Fehr 2007-08-06 11:29:53 UTC
An additional problem is that the option "locale=" is incompatible to the
old ntfs driver. 

It complains:
NTFS-fs error (device sda1): parse_options(): Unrecognized mount option locale.

so if we add this option, the user cannot easily switch back to the old ntfs 
driver by changing "ntfs-3g" to "ntfs" in /etc/fstab.
Comment 3 Ákos Szőts 2007-08-06 11:47:29 UTC
I tried your first issue:
I changed the locale from hu_HU.UTF-8 to en_US.UTF-8 and after a remount I can see all of my folders and files with Hungarian letters.
I don't know how but it works.

I think you should place a comment in the fstab file in case of s/he wants to switch back to the old driver.
But I think it has greater priority to see all of the files than the (probably experienced) user could change back to read-only mode.
Or s/he puts the "ro"  flag into the options (I suppose it also works with ntfs-3g) if he wants only a read-only fs, but he doesn't require the old driver.
Comment 4 Thomas Fehr 2007-08-06 12:03:47 UTC
Changed fstab options for ntfs-3g to add mount option for locale=.
Change will show up in beta#1.
Comment 5 Tim Fechtner 2007-08-09 21:44:33 UTC
Working fine in beta1.
Comment 6 Tim Fechtner 2007-08-09 21:44:49 UTC
Closing.