projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b80bf4
)
Always treat the GECOS real name field as UTF8-encoded
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 22 Apr 2009 13:39:50 +0000
(15:39 +0200)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Wed, 22 Apr 2009 13:39:50 +0000
(15:39 +0200)
Thanks to Gökçen Eraslan and H. İbrahim Güngör for this.
src/common/identity.cpp
patch
|
blob
|
history
diff --git
a/src/common/identity.cpp
b/src/common/identity.cpp
index
1978ebe
..
0569178
100644
(file)
--- a/
src/common/identity.cpp
+++ b/
src/common/identity.cpp
@@
-22,6
+22,7
@@
#include <QMetaProperty>
#include <QVariantMap>
+#include <QString>
#ifdef Q_OS_MAC
# include <CoreServices/CoreServices.h>
@@
-126,7
+127,7
@@
QString Identity::defaultRealName() {
QString realName;
struct passwd *pwd = getpwuid(getuid());
if(pwd)
- realName =
pwd->pw_gecos
;
+ realName =
QString::fromUtf8(pwd->pw_gecos)
;
if(!realName.isEmpty())
return realName;
else