Skip to content

Commit 37d5bee

Browse files
committed
Fix \e escape character on Windows
\e is not part of the C standard. Closes GH-13058
1 parent c68f4f6 commit 37d5bee

File tree

1 file changed

+1
-1
lines changed
  • ext/opcache/jit/ir

1 file changed

+1
-1
lines changed

ext/opcache/jit/ir/ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void ir_print_escaped_str(const char *s, size_t len, FILE *f)
8484
case '\"': fputs("\\\"", f); break;
8585
case '\a': fputs("\\a", f); break;
8686
case '\b': fputs("\\b", f); break;
87-
case '\e': fputs("\\e", f); break;
87+
case '\033': fputs("\\e", f); break;
8888
case '\f': fputs("\\f", f); break;
8989
case '\n': fputs("\\n", f); break;
9090
case '\r': fputs("\\r", f); break;

0 commit comments

Comments
 (0)