From owner-freebsd-i18n Wed Mar 21 4: 9:24 2001 Delivered-To: freebsd-i18n@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 5915C37B71E; Wed, 21 Mar 2001 04:09:19 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2LC5gF12549; Wed, 21 Mar 2001 15:05:42 +0300 (MSK) (envelope-from ache) Date: Wed, 21 Mar 2001 15:05:39 +0300 From: "Andrey A. Chernov" To: thinker , i18n@freebsd.org Cc: freebsd-current@freebsd.org, keichii@peorth.iteration.net Subject: Re: patch /bin/ls again, for mb supporting. Message-ID: <20010321150537.A12397@nagual.pp.ru> References: <20010320164901.A14424@hell.branda.to> <20010320011246.O29888@fw.wintelcom.net> <20010320173710.A14702@hell.branda.to> <20010320181320.A15057@hell.branda.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010320181320.A15057@hell.branda.to>; from thinker@branda.to on Tue, Mar 20, 2001 at 06:13:20PM +0000 Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Mar 20, 2001 at 18:13:20 +0000, thinker wrote: > + sz = mbtowc(&c, p, dc); > + if (isprint(c)) { As MINOURA correctly notes, you can't use isprint() with wchar_t type (isprint() is for runes and single chars only, but runes are not widely accepted standard). You need to use iswprint(), see http://www.opengroup.org/onlinepubs/007908799/xsh/iswprint.html It means you need to implement wctype.h and isw*() family _before_ any ls modifications. Of course they can be easily implemented via existen runes, so consider runes as internal interface. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-i18n" in the body of the message