[Pkg-owncloud-commits] [owncloud-client] 21/484: fix unicode issue #3753
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit cc5f8e51227fbd46c7269f2557d28d7e0d677bcf
Author: Individual IT Services <info at individual-it.net>
Date: Tue Sep 8 13:59:43 2015 +0545
fix unicode issue #3753
fixes the unicode issue #3753
I don't know much CPP and Qt but after some google research I found this http://wiki.qt.io/Strings_and_encodings_in_Qt
it does mention trUtf8() that has done the trick for me on Linux with Gnome 3.16.
Haven't tested it on other systems
---
src/gui/folderstatusmodel.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 19f5b5a..9b9dbff 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -791,7 +791,7 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
#ifdef Q_OS_WIN
fileProgressString.append(tr("download %1/s").arg(Utility::octetsToString(estimatedDownBw)));
#else
- fileProgressString.append(tr("\u2193" " %1/s").arg(Utility::octetsToString(estimatedDownBw)));
+ fileProgressString.append(trUtf8("\u2193" " %1/s").arg(Utility::octetsToString(estimatedDownBw)));
#endif
}
if (estimatedUpBw > 0) {
@@ -799,7 +799,7 @@ void FolderStatusModel::slotSetProgress(const ProgressInfo &progress)
#ifdef Q_OS_WIN
fileProgressString.append(tr("upload %1/s").arg(Utility::octetsToString(estimatedUpBw)));
#else
- fileProgressString.append(tr("\u2191" " %1/s").arg(Utility::octetsToString(estimatedUpBw)));
+ fileProgressString.append(trUtf8("\u2191" " %1/s").arg(Utility::octetsToString(estimatedUpBw)));
#endif
}
} else {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list