Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2002 23:49:41 +0400
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Chia-liang Kao <clkao@clkao.org>
Cc:        standards@FreeBSD.ORG, i18n@FreeBSD.ORG, keichii@FreeBSD.ORG, tjr@FreeBSD.ORG
Subject:   Re: wcwidth and mklocale
Message-ID:  <20020815194941.GA9773@nagual.pp.ru>
In-Reply-To: <20020815154915.GA9607@portege.clkao.org>
References:  <20020811181805.GA1809@portege.clkao.org> <20020812102835.GA1288@nagual.pp.ru> <20020813035009.GA1084@portege.clkao.org> <20020815154915.GA9607@portege.clkao.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Aug 15, 2002 at 23:49:16 +0800, Chia-liang Kao wrote:
> +wcwidth(wc)
> +        wchar_t wc;
> +{
> +	int width = (unsigned)__maskrune((wc), _CTYPE_SWM) >> _CTYPE_SWS;
> +	return width ? width : isprint(wc);

Should it be iswprint() instead here? isprint() is not supposed to be 
called directly on wchar_t.

-- 
Andrey A. Chernov
http://ache.pp.ru/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iQCVAwUBPVwF1OJgpPLZnQjrAQH00AQAmsyEKHfsBoXDzBCqfpPy3cSc47GdYsbQ
QdFuTSQTUVtG3qzBdIulFV+KidQYfhv5Ty2vx1ifXm/3UuSeUDXePiMKqqmMr6fg
odoBQl6nN4eNTdv0g6Z7TAJj1jKj/WvN0D1BQ/ecKM/AN293CoG07tTR3DCulk+R
HBiwJD60CRA=
=WsJf
-----END PGP SIGNATURE-----
help

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