Pádraig Brady <[email protected]> writes:

> Ugh sorry, I may have tweaked earlier patches and forgotten.
> Full patch set is at http://pixelbeat.org/cu/numfmt-mb/
>> Also, I get this failure:
>> lcl-suf-8...
>> numfmt.pl: test lcl-suf-8 failed: exit status mismatch:  expected 0, got 2
>
> From command line, that works here:
>
> LC_ALL=fr_FR.UTF-8 src/numfmt -d '' --from=auto $'2Ki\xe2\x80\x83 '
>
> 2048

Yep, it works as expected with the patches from your site. Looks good to
me.

> +Ditto and output non-breaking space: @option{-d '' 
> --unit-separator=$'\u00A0'}

Small note for the list, we already mention that the $'...' syntax is
only supported on "modern" shells. The exception is OpenBSD 'ksh'/'sh'
which does not support it (as of OpenBSD 7.7). I mentioned it on their
mailing list, but never heard anything back.

Based on Bruno's testing, Solaris 10 and AIX 7.1 'sh' also lack it
[1]. But you are likely to run into many other differences there as
well.

Collin

[1] 
https://cgit.git.savannah.gnu.org/cgit/gnulib/maint-tools.git/tree/test-programs/sh-features#n194

Reply via email to