mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
Improved terminal logging
This commit is contained in:
parent
d9d0c3b8dc
commit
e3b171930e
1 changed files with 4 additions and 3 deletions
|
@ -101,13 +101,14 @@ public final class Logger {
|
||||||
encoded=true;
|
encoded=true;
|
||||||
} else if (c>=' ' && c<'\u007f') {
|
} else if (c>=' ' && c<'\u007f') {
|
||||||
buf.append(c);
|
buf.append(c);
|
||||||
|
} else if (c <= '\u00ff') {
|
||||||
|
buf.append('\\'); buf.append('x');
|
||||||
|
buf.append(Integer.toHexString(c));
|
||||||
|
encoded=true;
|
||||||
} else {
|
} else {
|
||||||
buf.append('\\'); buf.append('u');
|
buf.append('\\'); buf.append('u');
|
||||||
if (c<='\u0fff') {
|
if (c<='\u0fff') {
|
||||||
buf.append('0');
|
buf.append('0');
|
||||||
if (c<='\u00ff') {
|
|
||||||
buf.append('0');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
buf.append(Integer.toHexString(c));
|
buf.append(Integer.toHexString(c));
|
||||||
encoded=true;
|
encoded=true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue