Skip to content

Commit fd117d6

Browse files
boomanaiden154aokblast
authored andcommitted
[Clnag] Prefer octal to hex for printf
The printf implementation on MacOS that gets picked up by the internal shell does not support the \xff form as it is not mandated by POSIX. Prefer octal which is supported and mandated by POSIX. This is similar to c745c54.
1 parent 168791d commit fd117d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Lexer/minimize_source_to_dependency_directives_utf8bom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test UTF8 BOM at start of file
2-
// RUN: printf '\xef\xbb\xbf' > %t.c
2+
// RUN: printf '\357\273\277' > %t.c
33
// RUN: echo '#ifdef TEST\n' >> %t.c
44
// RUN: echo '#include <string>' >> %t.c
55
// RUN: echo '#endif' >> %t.c

0 commit comments

Comments
 (0)