From owner-freebsd-hackers Sun Mar 9 01:10:58 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA09905 for hackers-outgoing; Sun, 9 Mar 1997 01:10:58 -0800 (PST) Received: from pcpsj.pfcs.com (d2N9dRolTCXnkV7zjRSaCYhEeoUMW2xg@harlan.fred.net [205.252.219.31]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA09900 for ; Sun, 9 Mar 1997 01:10:54 -0800 (PST) Received: from mumps.pfcs.com (mumps.pfcs.com [192.52.69.11]) by pcpsj.pfcs.com (8.6.12/8.6.9) with SMTP id EAA22122; Sun, 9 Mar 1997 04:10:48 -0500 Received: from localhost by mumps.pfcs.com with SMTP id AA29380 (5.67b/IDA-1.5); Sun, 9 Mar 1997 04:10:45 -0500 To: tarkhil@aha.ru Cc: freebsd-hackers@freebsd.org Subject: Re: bug in ctype? In-Reply-To: Your message of "Sun, 09 Mar 1997 11:21:27 +0300." <199703090821.LAA05686@tarkhil.dialup.aha.ru> Date: Sun, 09 Mar 1997 04:10:43 -0500 Message-Id: <29378.857898643@mumps.pfcs.com> From: Harlan Stenn Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Alex> With Cyrillic characters (>127) represented as char, isgraph(c) Alex> returns 0. Implementation as int or unsigned char works Alex> fine. Should I rewrite ctype library or programs that uses char? Rewrite your software. isgraph() takes an int, not a char. You'll also save yourself trouble if you use u_char for your application. H