From owner-freebsd-i18n Thu Aug 15 12:50:17 2002 Delivered-To: freebsd-i18n@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7720D37B400; Thu, 15 Aug 2002 12:50:13 -0700 (PDT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5091643E3B; Thu, 15 Aug 2002 12:50:12 -0700 (PDT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.12.5/8.12.5) with ESMTP id g7FJnnup009824; Thu, 15 Aug 2002 23:49:54 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.12.5/8.12.5/Submit) id g7FJnjRW009823; Thu, 15 Aug 2002 23:49:46 +0400 (MSD) (envelope-from ache) Date: Thu, 15 Aug 2002 23:49:41 +0400 From: "Andrey A. Chernov" To: Chia-liang Kao 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> References: <20020811181805.GA1809@portege.clkao.org> <20020812102835.GA1288@nagual.pp.ru> <20020813035009.GA1084@portege.clkao.org> <20020815154915.GA9607@portege.clkao.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20020815154915.GA9607@portege.clkao.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-i18n@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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-i18n" in the body of the message