From owner-freebsd-hackers Mon Sep 18 13:48:02 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA01866 for hackers-outgoing; Mon, 18 Sep 1995 13:48:02 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA01849 for ; Mon, 18 Sep 1995 13:47:54 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id NAA08542; Mon, 18 Sep 1995 13:44:43 -0700 From: Terry Lambert Message-Id: <199509182044.NAA08542@phaeton.artisoft.com> Subject: Re: Policy on printf format specifiers? To: julian@ref.tfs.com (Julian Elischer) Date: Mon, 18 Sep 1995 13:44:43 -0700 (MST) Cc: phk@critter.tfs.com, bde@zeta.org.au, hackers@FreeBSD.org, terry@lambert.org In-Reply-To: <199509182005.NAA02361@ref.tfs.com> from "Julian Elischer" at Sep 18, 95 01:05:21 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1465 Sender: owner-hackers@FreeBSD.org Precedence: bulk > > > >I'd like to add a format specifier '%S' to the list of format specifiers > > > >accepted by printf. Well, kernel printf, anyway. > > > > > > I don't want wchar_t's in the kernel. > > I also fail to see the need for this, and even if I did see the need, I > > still think we shouldn't have them in the kernel... > > I would have to agree.. > the kernel is too special a case to try make it generic in this way.. > maybe a 'syslogd' that can translate well known system error messages > might be more useful :) The intent in this case would be to print the NULL's and have the console ignore the display of them, or to truncate the strings as if they were ISO-8859-1 only. The purpose of this is to allow debugging of internationalized subsystems, in particular file system directory entry name space. This is *not* an attempt to support internationalization of kernel messages. Though that would be critically cool, it is an unlikely prospect in the extreme without additional support for argument positioning qualifiers for syntactic reordering of sentences. And I'm not asking for that (consider that Japanese sentence structure is SOV and english is SVO. Now consider an application that prints out two values in a single sentence, the order of which is dictated by logic of sentence structure). Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.