mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
ASCII escapes in property files are now parsed, albeit crudely.
This commit is contained in:
parent
7270eb7879
commit
98166dcc61
@ -137,6 +137,19 @@ public class Properties extends Hashtable {
|
||||
}
|
||||
break;
|
||||
|
||||
case 'u':
|
||||
if (escaped) { // ASCII Unicode escape
|
||||
int most = Character.digit((char)in.read(), 16);
|
||||
int more = Character.digit((char)in.read(), 16);
|
||||
int less = Character.digit((char)in.read(), 16);
|
||||
int least = Character.digit((char)in.read(), 16);
|
||||
char utf16 = (char)(most << 12 | more << 8 | less << 4 | least);
|
||||
append(utf16);
|
||||
} else {
|
||||
append(c);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
append(c);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user