Xref: utzoo comp.lang.c:14715 comp.std.c:556 Path: utzoo!attcan!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.lang.c,comp.std.c Subject: Definition of isprint() Message-ID: <474@sdrc.UUCP> Date: 13 Dec 88 22:40:13 GMT Organization: Structural Dynamics Research Corp., Cincinnati Lines: 23 We're using SAS C on an IBM mainframe and just ran into an interesting problem. SAS has defined "printing character" in terms of what is printable on an ancient line printer so some obviously printable characters such as "{", "}", "[", "]", "\", and "!" cause isprint() to return 0! Am I the only one who thinks this is less than useful? The dpANS seems to allow this, since "printing character" is implementation defined, but it seems to me that the C source character set should be specified as printable in the "C" locale. The problem seems to be that the exact semantics of ispunct() are not specified for the "C" locale. Was this an oversight or was it intentional? I was there, but I don't remember. ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC scjones@sdrc.uucp 2000 Eastman Dr. BIX: ltl Milford, OH 45150 AT&T: (513) 576-2070 "Save the Quayles" - Mark Russell