| ... | ... | @@ -866,7 +866,7 @@ test "error target - continuation expecting end-of-line" { |
| 866 | 866 | ); |
| 867 | 867 | try depTokenizer("foo.o: \\ ", |
| 868 | 868 | \\target = {foo.o} |
| 869 | | \\ERROR: illegal char \x20 at position 8: continuation expecting end-of-line |
| 869 | \\ERROR: illegal char ' ' at position 8: continuation expecting end-of-line |
| 870 | 870 | ); |
| 871 | 871 | try depTokenizer("foo.o: \\x", |
| 872 | 872 | \\target = {foo.o} |
| ... | ... | @@ -1053,10 +1053,10 @@ fn printCharValues(out: anytype, bytes: []const u8) !void { |
| 1053 | 1053 | } |
| 1054 | 1054 | |
| 1055 | 1055 | fn printUnderstandableChar(out: anytype, char: u8) !void { |
| 1056 | | if (!std.ascii.isPrint(char) or char == ' ') { |
| 1057 | | try out.print("\\x{X:0>2}", .{char}); |
| 1056 | if (std.ascii.isPrint(char)) { |
| 1057 | try out.print("'{c}'", .{char}); |
| 1058 | 1058 | } else { |
| 1059 | | try out.print("'{c}'", .{printable_char_tab[char]}); |
| 1059 | try out.print("\\x{X:0>2}", .{char}); |
| 1060 | 1060 | } |
| 1061 | 1061 | } |
| 1062 | 1062 | |