Date: Sat, 28 May 2011 11:37:47 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/tools/regression/usr.bin/printf regress.l1.out regress.l2.out regress.sh src/usr.bin/printf printf.1 printf.c Message-ID: <201105281138.p4SBcuZg050427@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-05-28 11:37:47 UTC FreeBSD src repository Modified files: tools/regression/usr.bin/printf regress.sh usr.bin/printf printf.1 printf.c Added files: tools/regression/usr.bin/printf regress.l1.out regress.l2.out Log: SVN rev 222418 on 2011-05-28 11:37:47Z by jilles 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. Revision Changes Path 1.1 +1 -0 src/tools/regression/usr.bin/printf/regress.l1.out (new) 1.1 +1 -0 src/tools/regression/usr.bin/printf/regress.l2.out (new) 1.4 +3 -1 src/tools/regression/usr.bin/printf/regress.sh 1.41 +2 -3 src/usr.bin/printf/printf.1 1.52 +17 -3 src/usr.bin/printf/printf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105281138.p4SBcuZg050427>