fix wide scanf's handling of input failure on %c, and simplify %[
[musl] / arch /
drwxr-xr-x   ..
drwxr-xr-x - arm
drwxr-xr-x - i386
drwxr-xr-x - x86_64