Print this page
4023 - Typo in file(1) manpage and various others

*** 636,646 **** base10 rounding errors. .sp .in +2 .nf ! example% printf "%a\n" 2 3.1 NaN .fi .in -2 .sp .sp --- 636,646 ---- base10 rounding errors. .sp .in +2 .nf ! example% printf "%a\en" 2 3.1 NaN .fi .in -2 .sp .sp
*** 665,675 **** floating-point value. .sp .in +2 .nf ! example% x=2 ; printf "%f == %a\n" x x .fi .in -2 .sp .sp --- 665,675 ---- floating-point value. .sp .in +2 .nf ! example% x=2 ; printf "%f == %a\en" x x .fi .in -2 .sp .sp
*** 691,701 **** The following command will print the EURO unicode symbol (code-point 0x20ac). .sp .in +2 .nf ! example% LC_ALL=en_US.UTF-8 printf "\u[20ac]\n" .fi .in -2 .sp .sp --- 691,701 ---- The following command will print the EURO unicode symbol (code-point 0x20ac). .sp .in +2 .nf ! example% LC_ALL=en_US.UTF-8 printf "\u[20ac]\en" .fi .in -2 .sp .sp
*** 722,732 **** .sp .in +2 .nf example% export LC_ALL=en_US.UTF-8 ! example% printf "%x\n" "'<euro>" .fi .in -2 .sp .sp --- 722,732 ---- .sp .in +2 .nf example% export LC_ALL=en_US.UTF-8 ! example% printf "%x\en" "'<euro>" .fi .in -2 .sp .sp
*** 749,759 **** .LP \fBExample 10 \fRPrint the numeric value of an ASCII character .sp .in +2 .nf ! example% printf "%d\n" "'A" .fi .in -2 .sp .sp --- 749,759 ---- .LP \fBExample 10 \fRPrint the numeric value of an ASCII character .sp .in +2 .nf ! example% printf "%d\en" "'A" .fi .in -2 .sp .sp
*** 800,810 **** For American usage, format could be the string: .sp .in +2 .nf ! "%s, %s %d, %d:%.2d\n" .fi .in -2 .sp .sp --- 800,810 ---- For American usage, format could be the string: .sp .in +2 .nf ! "%s, %s %d, %d:%.2d\en" .fi .in -2 .sp .sp
*** 824,834 **** Whereas for EU usage, format could be the string: .sp .in +2 .nf ! "%1$s, %3$d. %2$s, %4$d:%5$.2d\n" .fi .in -2 .sp .sp --- 824,834 ---- Whereas for EU usage, format could be the string: .sp .in +2 .nf ! "%1$s, %3$d. %2$s, %4$d:%5$.2d\en" .fi .in -2 .sp .sp
*** 836,846 **** Note that the '$' characters must be properly escaped, such as .sp .in +2 .nf ! "%1\$s, %3\$d. %2\$s, %4\$d:%5\$.2d\n" in this case .fi .in -2 .sp .sp --- 836,846 ---- Note that the '$' characters must be properly escaped, such as .sp .in +2 .nf ! "%1\$s, %3\$d. %2\$s, %4\$d:%5\$.2d\en" in this case .fi .in -2 .sp .sp
*** 928,938 **** .LP Using format specifiers (characters following '%') which are not listed in the \fBprintf\fR(3C) or this manual page will result in undefined behavior. .sp .LP ! Using escape sequences (the character following a backslash ('\')) which are not listed in the \fBprintf\fR(3C) or this manual page will result in undefined behavior. .sp .LP Floating-point values follow C99, XPG6 and IEEE 754 standard behavior and can --- 928,938 ---- .LP Using format specifiers (characters following '%') which are not listed in the \fBprintf\fR(3C) or this manual page will result in undefined behavior. .sp .LP ! Using escape sequences (the character following a backslash ('\e')) which are not listed in the \fBprintf\fR(3C) or this manual page will result in undefined behavior. .sp .LP Floating-point values follow C99, XPG6 and IEEE 754 standard behavior and can