summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-05-28 11:37:47 +0000
committerjilles <jilles@FreeBSD.org>2011-05-28 11:37:47 +0000
commit979af05e7725d814570e4633b10a5d49e67e987c (patch)
tree97044025b3bbee11165340fbea5bcf368dd81b10 /lib/libc/stdlib
parent36cd7cef5ee843f5238463d58cf2180183b674cd (diff)
downloadFreeBSD-src-979af05e7725d814570e4633b10a5d49e67e987c.zip
FreeBSD-src-979af05e7725d814570e4633b10a5d49e67e987c.tar.gz
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.
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud