Revert "od -c => od -tc: od -c is an XSI extension equivalent to LC_CTYPE=C od -tc and not universally available"

This reverts commit 0bce9fb8ed.
This commit is contained in:
Nicolas Williams committed 2023-10-04 22:28:24 -05:00
1 parent 0bce9fb8ed
commit 0e70f7a57e
1 file changed
+8 -8
+8 -8
View File
@@ -517,23 +517,23 @@ if $test_no_color && command -v script >/dev/null 2>&1; then
faketty $JQ_NO_B -n . > $d/color faketty $JQ_NO_B -n . > $d/color
printf '\033[0;90mnull\033[0m\r\n' > $d/expect printf '\033[0;90mnull\033[0m\r\n' > $d/expect
od -tc $d/expect od -c $d/expect
od -tc $d/color od -c $d/color
cmp $d/color $d/expect cmp $d/color $d/expect
NO_COLOR= faketty $JQ_NO_B -n . > $d/color NO_COLOR= faketty $JQ_NO_B -n . > $d/color
printf '\033[0;90mnull\033[0m\r\n' > $d/expect printf '\033[0;90mnull\033[0m\r\n' > $d/expect
od -tc $d/expect od -c $d/expect
od -tc $d/color od -c $d/color
cmp $d/color $d/expect cmp $d/color $d/expect
NO_COLOR=1 faketty $JQ_NO_B -n . > $d/color NO_COLOR=1 faketty $JQ_NO_B -n . > $d/color
printf 'null\r\n' > $d/expect printf 'null\r\n' > $d/expect
od -tc $d/expect od -c $d/expect
od -tc $d/color od -c $d/color
cmp $d/color $d/expect cmp $d/color $d/expect
NO_COLOR=1 faketty $JQ_NO_B -Cn . > $d/color NO_COLOR=1 faketty $JQ_NO_B -Cn . > $d/color
printf '\033[0;90mnull\033[0m\r\n' > $d/expect printf '\033[0;90mnull\033[0m\r\n' > $d/expect
od -tc $d/expect od -c $d/expect
od -tc $d/color od -c $d/color
cmp $d/color $d/expect cmp $d/color $d/expect
fi fi