diff options
author | Xizhi Zhu <xizhi.zhu@nokia.com> | 2011-08-18 10:34:00 (GMT) |
---|---|---|
committer | Xizhi Zhu <xizhi.zhu@nokia.com> | 2011-08-18 10:35:07 (GMT) |
commit | ad35bf83f9bd1d6b978243051e3d10a7fc61eec7 (patch) | |
tree | 5a032599eae9a8ee7cd35277ab794cb9ad8cf86a | |
parent | 744415e5e0f0e7084821599be99da504e2606032 (diff) | |
download | Qt-ad35bf83f9bd1d6b978243051e3d10a7fc61eec7.zip Qt-ad35bf83f9bd1d6b978243051e3d10a7fc61eec7.tar.gz Qt-ad35bf83f9bd1d6b978243051e3d10a7fc61eec7.tar.bz2 |
Fix non-ascii name issues in ICD.
PMO Bug 275663.
Developed by Aapo Makela, reviewed by me.
-rw-r--r-- | src/plugins/bearer/icd/dbusdispatcher.cpp | 4 | ||||
-rw-r--r-- | src/plugins/bearer/icd/iapconf.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/bearer/icd/dbusdispatcher.cpp b/src/plugins/bearer/icd/dbusdispatcher.cpp index 60e4640..62dec62 100644 --- a/src/plugins/bearer/icd/dbusdispatcher.cpp +++ b/src/plugins/bearer/icd/dbusdispatcher.cpp @@ -195,7 +195,7 @@ static bool appendVariantToDBusMessage(const QVariant& argument, break; case QVariant::String: { - QByteArray data = argument.toString().toLatin1(); + QByteArray data = argument.toString().toUtf8(); str_data = data.data(); dbus_message_iter_append_basic(dbus_iter, DBUS_TYPE_STRING, &str_data); @@ -363,7 +363,7 @@ static QVariant getVariantFromDBusMessage(DBusMessageIter *iter) { case DBUS_TYPE_STRING: { dbus_message_iter_get_basic(iter, &str_data); - QString str(str_data); + QString str(QString::fromUtf8(str_data)); QVariant variant(str); return variant; } diff --git a/src/plugins/bearer/icd/iapconf.cpp b/src/plugins/bearer/icd/iapconf.cpp index a29e326..e326edf 100644 --- a/src/plugins/bearer/icd/iapconf.cpp +++ b/src/plugins/bearer/icd/iapconf.cpp @@ -143,7 +143,7 @@ QVariant IAPConfPrivate::valueToVariant(ConnSettingsValue *value) return QVariant(value->value.bool_val ? true : false); case CONN_SETTINGS_VALUE_STRING: - return QVariant(QString(value->value.string_val)); + return QVariant(QString::fromUtf8(value->value.string_val)); case CONN_SETTINGS_VALUE_DOUBLE: return QVariant(value->value.double_val); |