projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
127d1fd
)
Use correct encoding (system locale) for processing script data
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 13 Mar 2009 20:07:16 +0000
(21:07 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Fri, 13 Mar 2009 20:07:16 +0000
(21:07 +0100)
src/client/execwrapper.cpp
patch
|
blob
|
history
diff --git
a/src/client/execwrapper.cpp
b/src/client/execwrapper.cpp
index
24b5c84
..
ea63822
100644
(file)
--- a/
src/client/execwrapper.cpp
+++ b/
src/client/execwrapper.cpp
@@
-99,7
+99,7
@@
void ExecWrapper::processError(QProcess::ProcessError error) {
}
void ExecWrapper::processReadStdout() {
}
void ExecWrapper::processReadStdout() {
- _stdoutBuffer.append(
_process.readAllStandardOutput(
));
+ _stdoutBuffer.append(
QTextCodec::codecForLocale()->toUnicode(_process.readAllStandardOutput()
));
int idx;
while((idx = _stdoutBuffer.indexOf('\n')) >= 0) {
emit stdout(_stdoutBuffer.left(idx));
int idx;
while((idx = _stdoutBuffer.indexOf('\n')) >= 0) {
emit stdout(_stdoutBuffer.left(idx));
@@
-108,7
+108,7
@@
void ExecWrapper::processReadStdout() {
}
void ExecWrapper::processReadStderr() {
}
void ExecWrapper::processReadStderr() {
- _stderrBuffer.append(
_process.readAllStandardError(
));
+ _stderrBuffer.append(
QTextCodec::codecForLocale()->toUnicode(_process.readAllStandardError()
));
int idx;
while((idx = _stderrBuffer.indexOf('\n')) >= 0) {
emit stderr(_stderrBuffer.left(idx));
int idx;
while((idx = _stderrBuffer.indexOf('\n')) >= 0) {
emit stderr(_stderrBuffer.left(idx));