opnsense-src/tools/regression/usr.bin/printf
Jilles Tjoelker 98102dabd3 printf: Allow multibyte characters for '<char> form, avoid negative codes.
Examples:
  LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244)
  LC_ALL=en_US.ISO8859-1 printf '%d\n' $(printf \'\\344)
Both of these should print 228.

Like some other shells, incomplete or invalid multibyte characters yield the
value of the first byte without a warning.

Note that there is no general way to go back from the character code to the
character.
2011-05-28 11:37:47 +00:00
..
Makefile
regress.b.out
regress.d.out
regress.f.out
regress.l1.out printf: Allow multibyte characters for '<char> form, avoid negative codes. 2011-05-28 11:37:47 +00:00
regress.l2.out printf: Allow multibyte characters for '<char> form, avoid negative codes. 2011-05-28 11:37:47 +00:00
regress.m1.out
regress.m2.out
regress.m3.out
regress.m4.out
regress.m5.out printf: Test that the "--" option terminator works. 2010-12-08 22:54:18 +00:00
regress.s.out
regress.sh printf: Allow multibyte characters for '<char> form, avoid negative codes. 2011-05-28 11:37:47 +00:00
regress.t