From: Jay Freeman (saurik) Date: Wed, 1 Jan 2014 01:29:59 +0000 (-0800) Subject: Surprisingly, od -t c is locale (LANG) sensitive. X-Git-Tag: v0.9.500~126 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/dbcf53a9a108a2c4ddf984a70cfb8468396d3f45?hp=69d4f99aa28c0e60cf762583c2e94aa76f2bdec0 Surprisingly, od -t c is locale (LANG) sensitive. --- diff --git a/trampoline.sh b/trampoline.sh index f2ce916..97e078a 100755 --- a/trampoline.sh +++ b/trampoline.sh @@ -72,7 +72,7 @@ for arch in "${archs[@]}"; do echo echo "static const char ${name}_${arch}_data_[] = {" - od -v -t x1 -t c -j "$((offset + fileoff))" -N "${filesize}" "${object}" | "${sed}" -e ' + LANG=C od -v -t x1 -t c -j "$((offset + fileoff))" -N "${filesize}" "${object}" | "${sed}" -e ' /^[0-7]/ ! { s@^ @// @; s/\(....\)/ \1/g;