Bug 238520 - kde-base/kdelibs-4.1.1-r4, kde-base/kdebase-3.5.9-r3: KDE doesn't provide "locale" flag when mounting with HAL and ntfs-3g
|
Bug#:
238520
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: critical
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: kde@gentoo.org
|
Reported By: ambro@b4ever.net
|
|
Component: KDE
|
|
|
URL:
|
|
Summary: kde-base/kdelibs-4.1.1-r4, kde-base/kdebase-3.5.9-r3: KDE doesn't provide "locale" flag when mounting with HAL and ntfs-3g
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2008-09-23 22:20 0000
|
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:
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 an attachment (id=166272) [details]
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.
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.