Commit b26e5a19 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by hjk
Browse files

Debugger: Fix wrong display of \r and \n

10 is \n and 13 is \r...

This partially reverts commit caca06ad

.

Change-Id: I6b8cba940213c1f5acb7737c3c99646db0f5699f
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 536944a3
...@@ -659,11 +659,11 @@ static QString quoteUnprintable(const QString &str) ...@@ -659,11 +659,11 @@ static QString quoteUnprintable(const QString &str)
int u = c.unicode(); int u = c.unicode();
if (c.isPrint()) if (c.isPrint())
encoded += c; encoded += c;
else if (u == 10) else if (u == '\r')
encoded += QLatin1String("\\r"); encoded += QLatin1String("\\r");
else if (u == 9) else if (u == '\t')
encoded += QLatin1String("\\t"); encoded += QLatin1String("\\t");
else if (u == 13) else if (u == '\n')
encoded += QLatin1String("\\n"); encoded += QLatin1String("\\n");
else else
encoded += QString::fromLatin1("\\%1") encoded += QString::fromLatin1("\\%1")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment