If the latest unstable sys-fs/ntfs3g is installed with the 'hal' use flag, KDE can mount NTFS filesystems with the ntfs-3g driver through HAL. However, ntfs-3g has to be provided a locale so it can translate file names with non-ascii characters. ntfs-3g will check its environment variables (LC_ALL, ...) and also has a "locale" mount option. It never has those environment variables, even if a system locale is configured. So the best would be for KDE to provide the locale though HAL (which allows it) as in the user's enviroment; but it doesn't right now. I have a patch for KDE 4.1 which solves the problem by providing the "locale" option to HAL. I will post the KDE 3.5 patch shortly, and will also commit both upstream. I've set the severity to critical, because it presents a potential data loss (e.g. you backup a folder from your NTFS drive, and have no idea some files with non-ascii names were not copied). Reproducible: Always Steps to Reproduce:
Created attachment 166221 [details, diff] KDE 4.1 fix (kdelibs patch)
I've forgot to mention why there could be a data loss: if ntfs-3g is not provided a locale, it will fail to show any files with non-ascii names. It will also refuse the creation of such files.
Created attachment 166269 [details, diff] KDE 3.5.9 fix (kdebase / kdebase-kioslaves)
Created attachment 166271 [details, diff] KDE 3.5.10 fix (kdebase/kdebase-kioslaves)
Created attachment 166272 [details, diff] KDE 3.5.10 fix (kdebase / kdebase-kioslaves) Mounting plain ntfs (kernel driver, no ntfs-3g) was broken (with and without my patch) in KDE 3.5.10. HAL somehow always lists the "locale" option as available for the "ntfs" fstype, which is not really supported by the default kernel driver, providing it will trigger a mount error. Maybe it was meant for the the ntfsmount driver from linux-ntfs, which is really unmaintained and broken. So, I added a check to pass the locale only if the fstype is "ntfs-3g", as in the other two patches.
Please add the link to the upstream bugs/commits and reopen again.
Upstream commits: 3.5 branch: http://websvn.kde.org/?view=rev&revision=864963 4.1 branch: http://websvn.kde.org/?view=rev&revision=864120 trunk: http://websvn.kde.org/?view=rev&revision=864123 The 3.5.9 patch posted here is different from the committed 3.5 patch because since 3.5.10 there is already some (broken) locale support, but the resulting code is the same.
I've just added a revbumped 3.5.9 and 3.5.10 to the tree with the provided patches. I haven't fixed 4.1.1 as 4.1.2 should be released tomorrow and provides the fix.