From owner-freebsd-stable Mon Jan 10 21: 7:42 2000 Delivered-To: freebsd-stable@freebsd.org Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190]) by hub.freebsd.org (Postfix) with ESMTP id 25702153EE; Mon, 10 Jan 2000 21:07:34 -0800 (PST) (envelope-from mi@kot.ne.mediaone.net) Received: from rtfm.newton (mi@rtfm.newton [10.10.0.1]) by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id AAA25161; Tue, 11 Jan 2000 00:07:30 -0500 (EST) From: Mikhail Teterin X-Relay-IP: 10.10.0.1 Received: (from mi@localhost) by rtfm.newton (8.9.3/8.9.3) id AAA90968; Tue, 11 Jan 2000 00:07:30 -0500 (EST) (envelope-from mi@kot.ne.mediaone.net) Message-Id: <200001110507.AAA90968@rtfm.newton> Subject: Re: isprint(3) and LANG/LOCALE In-Reply-To: <20000110205334.C98651@relay.nuxi.com> from "David O'Brien" at "Jan 10, 2000 08:53:34 pm" To: obrien@freebsd.org Date: Tue, 11 Jan 2000 00:07:30 -0500 (EST) Cc: ache@freebsd.org, stable@freebsd.org X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7w hJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli"Is the subject supposed to consider the LANG setting? I'd think so, =>but => =I would email ache@freebsd.org as he is our internationalization guy. Is not he reading -stable? =Possibly putting calls to setlocale() in main() will help. Does not appear to change the result of this little program... -mi #include #include #include main(int argc, char *argv[]) { char *c; setlocale(LC_ALL, ""); for(c = argv[argc-1]; *c; *c++) printf("for %c isprint() returns %d\n", *c, isprint(*c)); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message