Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!maxim!prc From: prc@erbe.se (Robert Claeson) Newsgroups: comp.mail.elm Subject: Re: ELM 2.3 PL0 unofficial patch for 8-bit characters. Keywords: 8-bit character set patch Message-ID: <1592@hulda.erbe.se> Date: 28 May 90 07:49:05 GMT References: <26597A7A.5CFF@tct.uucp> <1450@hulda.erbe.se> <265D8143.39EE@tct.uucp> <1273@chinacat.Unicom.COM> Organization: ERBE DATA AB, Jarfalla, Sweden Lines: 21 In article <1273@chinacat.Unicom.COM>, chip@chinacat.Unicom.COM (Chip Rosenthal) writes: > In article <265D8143.39EE@tct.uucp> chip@tct.uucp (Chip Salzenberg) writes: > >You can't, at least not portably. You need another method of > >determining what's printable, because isprint() won't cut it. > Maybe what is needed is a printable() macro. Elm already uses a > whitespace() macro which gets around the analogous isspace() problems. You mean along the lines of: /* Side effects */ #ifdef HAS_STABLE_ISPRINT #define printable(c) (isprint(c)) #else #define printable(c) (isascii(c) && isprint(c)) #endif -- Robert Claeson E-mail: rclaeson@erbe.se ERBE DATA AB