Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 152546 | Differences between
and this patch

Collapse All | Expand All

(-)kdelibs-3.1.2.orig/kdecore/kprocio.cpp (-3 / +7 lines)
Lines 38-47 Link Here
38
38
39
  if (!codec)
39
  if (!codec)
40
  {
40
  {
41
     codec = QTextCodec::codecForName("ISO 8859-1");
41
     codec = QTextCodec::codecForLocale(); // Try Locale codec first
42
     if (!codec)
42
     if (!codec)
43
     {
43
     {
44
        kdError(174) << "Can't create ISO 8859-1 codec!" << endl;
44
        codec = QTextCodec::codecForName("ISO 8859-1");
45
        if (!codec)
46
        {
47
          kdError(174) << "Can't create ISO 8859-1 codec!" << endl;
48
        }
45
     }
49
     }
46
  }
50
  }
47
}
51
}
Lines 235-241 Link Here
235
     if (partial)
239
     if (partial)
236
     {
240
     {
237
        len = recvbuffer.length();
241
        len = recvbuffer.length();
238
        line = recvbuffer;
242
        line = codec->toUnicode(recvbuffer, len);
239
        recvbuffer = "";
243
        recvbuffer = "";
240
        *partial = true;
244
        *partial = true;
241
        return len;
245
        return len;

Return to bug 152546