From e2b090f34f19dc5675a2d35ecf12abfc0f6f1a6d Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Mon, 6 Jan 2003 06:19:19 +0000 Subject: [PATCH] Note that the printf(3) and scanf(3) family of functions don't deal with multibyte characters in the format string correctly. --- lib/libc/stdio/printf.3 | 8 +++++++- lib/libc/stdio/scanf.3 | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/libc/stdio/printf.3 b/lib/libc/stdio/printf.3 index 7e73f24e7dcf..5cb9b173c8c1 100644 --- a/lib/libc/stdio/printf.3 +++ b/lib/libc/stdio/printf.3 @@ -36,7 +36,7 @@ .\" @(#)printf.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd December 20, 2002 +.Dd January 4, 2003 .Dt PRINTF 3 .Os .Sh NAME @@ -872,3 +872,9 @@ modifier for floating point formats simply round the argument to .Vt double , providing no additional precision. +.Pp +The +.Nm +family of functions do not correctly handle multibyte characters in the +.Fa format +argument. diff --git a/lib/libc/stdio/scanf.3 b/lib/libc/stdio/scanf.3 index 55367c4c1fc6..a325f37a7811 100644 --- a/lib/libc/stdio/scanf.3 +++ b/lib/libc/stdio/scanf.3 @@ -36,7 +36,7 @@ .\" @(#)scanf.3 8.2 (Berkeley) 12/11/93 .\" $FreeBSD$ .\" -.Dd December 20, 2002 +.Dd January 4, 2003 .Dt SCANF 3 .Os .Sh NAME @@ -530,3 +530,9 @@ The and .Cm \&%A floating-point formats are not implemented. +.Pp +The +.Nm +family of functions do not correctly handle multibyte characters in the +.Fa format +argument.