Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2001 15:05:39 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        thinker <thinker@branda.to>, 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>
In-Reply-To: <20010320181320.A15057@hell.branda.to>; from thinker@branda.to on Tue, Mar 20, 2001 at 06:13:20PM %2B0000
References:  <20010320164901.A14424@hell.branda.to> <20010320011246.O29888@fw.wintelcom.net> <20010320173710.A14702@hell.branda.to> <20010320181320.A15057@hell.branda.to>

next in thread | previous in thread | raw e-mail | index | archive | help
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-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010321150537.A12397>