[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] UTF-8 named mountpoints
From: "=?utf-8?q?S=2E=C3=87a=C4=9Flar?= Onur" <caglar () pardus ! org ! tr>
Date: 2006-11-19 14:55:27
Message-ID: 200611191655.29868.caglar () pardus ! org ! tr
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
[Attachment #4 (multipart/mixed)]
Hi;
Attached patch fixes the mountpoint name corruption problem if volume has a
utf-8 label, to reproduce it;
# mkfs.ntfs --label "SEMİHA" /dev/sda1 (or --label "çöişğü")
and trying to mount that volume enough, although hal created needed directory
under /media and successfully mounted, KDE can't redirect media:/sda1 to
right place [1].
[1] http://bugs.pardus.org.tr/attachment.cgi?id=1370
Cheers
--
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/
Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
["media_kurl_utf8.patch" (text/x-diff)]
diff -ur kdebase-3.5.5.orig/kioslave/media/libmediacommon/medium.h \
kdebase-3.5.5/kioslave/media/libmediacommon/medium.h
--- kdebase-3.5.5.orig/kioslave/media/libmediacommon/medium.h 2006-07-22 \
11:15:42.000000000 +0300
+++ kdebase-3.5.5/kioslave/media/libmediacommon/medium.h 2006-11-19 \
00:30:50.000000000 +0200 @@ -56,7 +56,7 @@
QString userLabel() const { return m_properties[USER_LABEL]; };
bool isMountable() const { return m_properties[MOUNTABLE]=="true"; };
QString deviceNode() const { return m_properties[DEVICE_NODE]; };
- QString mountPoint() const { return m_properties[MOUNT_POINT]; };
+ QString mountPoint() const { return \
QString::fromLocal8Bit(m_properties[MOUNT_POINT].latin1()); }; QString fsType() \
const { return m_properties[FS_TYPE]; }; bool isMounted() const { return \
m_properties[MOUNTED]=="true"; }; QString baseURL() const { return \
m_properties[BASE_URL]; };
[Attachment #8 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic