Skip to content

Commit d5f4f39

Browse files
Strings: Fix format of the hex constant when printing codepoints for Unicode escape sequences
1 parent 780be3f commit d5f4f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/sosy_lab/java_smt/basicimpl/AbstractStringFormulaManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static String escapeUnicodeForSmtlib(String input) {
9090
} else if (0x20 <= codePoint && codePoint <= 0x7E) {
9191
sb.appendCodePoint(codePoint); // normal printable chars
9292
} else {
93-
sb.append("\\u{").append(String.format("%05X", codePoint)).append("}");
93+
sb.append("\\u{").append(String.format("%x", codePoint)).append("}");
9494
}
9595
}
9696
return sb.toString();

0 commit comments

Comments
 (0)