summaryrefslogtreecommitdiffstats
path: root/tdeioslave/media
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-05-20 19:51:23 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-05-20 19:51:23 +0200
commit63989b0b224810fc7905faa37ef9a5309e050fea (patch)
treea3488d0bbca41df3df4d08dd0fe83453b3db7650 /tdeioslave/media
parent5c1cfcf1a1c3a434aeb07c7195345dc58df4f528 (diff)
downloadtdebase-63989b0b224810fc7905faa37ef9a5309e050fea.tar.gz
tdebase-63989b0b224810fc7905faa37ef9a5309e050fea.zip
Fix halbackend media name with UTF8 caracters
Diffstat (limited to 'tdeioslave/media')
-rw-r--r--tdeioslave/media/mediamanager/halbackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdeioslave/media/mediamanager/halbackend.cpp b/tdeioslave/media/mediamanager/halbackend.cpp
index 397c6b662..05cdae425 100644
--- a/tdeioslave/media/mediamanager/halbackend.cpp
+++ b/tdeioslave/media/mediamanager/halbackend.cpp
@@ -550,10 +550,10 @@ void HALBackend::setVolumeProperties(Medium* medium)
*/
if (media_name.find(TQRegExp("^[0-9]+\\.?[0-9]*[KMGT] (Removable )?Media$")) > -1) {
TQString pattern = media_name.section(" ", 1);
- media_name.replace(pattern, i18n(pattern.ascii()));
+ media_name.replace(pattern, i18n(pattern.utf8()));
medium->setLabel(media_name);
} else {
- medium->setLabel(i18n(media_name.ascii()));
+ medium->setLabel(i18n(media_name.utf8()));
}
free(name);