mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05: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;
|
||||
} else if (c>=' ' && c<'\u007f') {
|
||||
buf.append(c);
|
||||
} else if (c <= '\u00ff') {
|
||||
buf.append('\\'); buf.append('x');
|
||||
buf.append(Integer.toHexString(c));
|
||||
encoded=true;
|
||||
} else {
|
||||
buf.append('\\'); buf.append('u');
|
||||
if (c<='\u0fff') {
|
||||
buf.append('0');
|
||||
if (c<='\u00ff') {
|
||||
buf.append('0');
|
||||
}
|
||||
}
|
||||
buf.append(Integer.toHexString(c));
|
||||
encoded=true;
|
||||
|
|
Loading…
Add table
Reference in a new issue