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>

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

--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

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

--huq684BweRXVnRxX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

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

--huq684BweRXVnRxX--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




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