From owner-freebsd-hackers Tue Sep 19 12:07:15 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA24795 for hackers-outgoing; Tue, 19 Sep 1995 12:07:15 -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 MAA24782 for ; Tue, 19 Sep 1995 12:07:11 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id MAA10411; Tue, 19 Sep 1995 12:04:29 -0700 From: Terry Lambert Message-Id: <199509191904.MAA10411@phaeton.artisoft.com> Subject: Re: Policy on printf format specifiers? To: peter@taronga.com (Peter da Silva) Date: Tue, 19 Sep 1995 12:04:29 -0700 (MST) Cc: hackers@FreeBSD.ORG In-Reply-To: <199509191331.IAA28290@bonkers.taronga.com> from "Peter da Silva" at Sep 19, 95 08:31:59 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1044 Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > In article <199509182019.NAA08435@phaeton.artisoft.com>, > Terry Lambert wrote: > >If your storage encoding, like Plan9, is UTF-8, then the answer is you > >can allow them no more than 51 characters for file names, unless you > >provide a prohibitively expensive (in terms of interactive response > >time) "check" callback for character entry. > > Why would it be prohibitively expensive? UTF is a simple scheme. I'm sure > I could implement a version of UTF file name checking for an entry dialog > that was fast enough nobody would notice it in TK, even on a 386, and TCL > is no number cruncher. Because you have to redo the string before you redraw or allow the character entry in the "fixed length field" and interactive response will suffer because of that. I suppose you could rewrite all the widgets to better hook the callbacks if you were inclined to do that. Bletch. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.