From 63989b0b224810fc7905faa37ef9a5309e050fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 20 May 2013 19:51:23 +0200 Subject: Fix halbackend media name with UTF8 caracters --- tdeioslave/media/mediamanager/halbackend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tdeioslave/media/mediamanager') 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); -- cgit v1.2.1