1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 12:37:49 +00:00

cat: range pattern now should use three dots.

This commit is contained in:
NODA, Kai 2014-10-02 22:42:30 +08:00
parent f96764fc2d
commit c41250f69e

View file

@ -221,16 +221,16 @@ fn write_bytes(files: Vec<String>, number: NumberingMode, squeeze_blank: bool,
}
} else if show_nonprint {
let byte = match byte {
128 .. 255 => {
128 ... 255 => {
writer.write_str("M-").unwrap();
byte - 128
},
_ => byte,
};
match byte {
0 .. 31 => writer.write(['^' as u8, byte + 64]),
127 => writer.write(['^' as u8, byte - 64]),
_ => writer.write_u8(byte),
0 ... 31 => writer.write(['^' as u8, byte + 64]),
127 => writer.write(['^' as u8, byte - 64]),
_ => writer.write_u8(byte),
}
} else {
writer.write_u8(byte)