Skip to content

Commit a43d7eb

Browse files
committed
Use file containing non-UTF-8 character instead of echo -e
1 parent 00a33d6 commit a43d7eb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-include ../tools.mk
22

33
all:
4-
echo -e '\xD2' | $(RUSTC) - 2>&1 \
4+
cp non-utf8 $(TMPDIR)/non-utf.rs
5+
cat $(TMPDIR)/non-utf.rs | $(RUSTC) - 2>&1 \
56
| $(CGREP) "error: couldn't read from stdin, as it did not contain valid UTF-8"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)