]> git.saurik.com Git - cycript.git/commitdiff
Surprisingly, od -t c is locale (LANG) sensitive.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Jan 2014 01:29:59 +0000 (17:29 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 1 Jan 2014 01:29:59 +0000 (17:29 -0800)
trampoline.sh

index f2ce9167aa06332cbcdd23f685c426027998bbc5..97e078a40a4e514ee20deb74a5304370f8b31623 100755 (executable)
@@ -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;