aboutsummaryrefslogtreecommitdiff
path: root/bin/u8
diff options
context:
space:
mode:
Diffstat (limited to 'bin/u8')
-rwxr-xr-xbin/u81
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/u8 b/bin/u8
index c14a974..8294ef4 100755
--- a/bin/u8
+++ b/bin/u8
@@ -25,6 +25,7 @@
export LC_ALL=C
a=$1; b=${a#?}; c=${b#?}; d=${c#?}
+unset LC_ALL
a=${a%"$b"} b=${b%"$c"} c=${c%"$d"} d=${d%"${1#????}"}
export $(printf 'a=%d b=%d c=%d d=%d' "'$a" "'$b" "'$c" "'$d")
printf '0x%08X\n' "$((a < 128 ? a : a < 224 ?