aboutsummaryrefslogtreecommitdiff
path: root/toys/other/clear.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-11-22 13:34:01 -0800
committerRob Landley <rob@landley.net>2019-11-23 10:03:43 -0600
commitd2f6a12763b09ecd0c627c2d86d8b86fb4b62113 (patch)
treef792a16abbafdc91ec5a0ef4265e4951acafa4c4 /toys/other/clear.c
parentdeee4f033f190e59eedc82e73b94b6b4b97d0a6f (diff)
downloadtoybox-d2f6a12763b09ecd0c627c2d86d8b86fb4b62113.tar.gz
Fix iconv and tests on Mac.
The Mac iconv_open(3) doesn't follow Unicode TR#22 rules for charset alias matching that bionic and glibc do (and, strictly, POSIX doesn't say you have to even though it's obviously a good idea), so we have to say exactly "UTF-8" rather than "utf8". Additionally, the 2006-era bash 3.2 on current versions of macOS (because it was the last GPLv2 bash) seems to have bugs that cause it to mangle UTF-8 input, so we can't reliably echo a UTF-8 sequence into a file. Use \x in the tests to work around this.
Diffstat (limited to 'toys/other/clear.c')
0 files changed, 0 insertions, 0 deletions