X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,694b2c31500797b4 X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 2002-04-01 01:06:30 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!news2.west.cox.net.POSTED!53ab2750!not-for-mail Newsgroups: alt.ascii-art From: Faux_Pseudo Subject: Re: Character List References: <20020330221444.12042.00000994@mb-fl.aol.com> <3k5eauov0iv5sjeipg0sq9svmel1c1c5ps@4ax.com> Reply-To: Faux_Pseudo@yahoo.comERCIAL Message-ID: User-Agent: slrn/0.9.7.4 (Linux) Lines: 49 Date: Mon, 01 Apr 2002 09:06:27 GMT NNTP-Posting-Host: 68.8.9.87 X-Complaints-To: abuse@cox.net X-Trace: news2.west.cox.net 1017651987 68.8.9.87 (Mon, 01 Apr 2002 04:06:27 EST) NNTP-Posting-Date: Mon, 01 Apr 2002 04:06:27 EST Organization: Cox Communications Xref: archiver1.google.com alt.ascii-art:16488 --(Once apon a time, in alt.ascii-art,)-- --(Rafal 'Raf256' Maj said it like only they can.)-- > bug wrote in > news:3k5eauov0iv5sjeipg0sq9svmel1c1c5ps@4ax.com: > >>#include >> int main() >> { >> for (int i=32; i<128; i++) >> std::cout << (char) i; >> return 0; >> } > > > #include > #include > int main() { > clrscr(); > int x=0; > for (int i=32; i<=126; i++) { > if (i<100) cout<<'0'; > cout< if (x++>6) { cout< } > return 0; > } > > I was toying around with a shell script version but found that their was no clean way to do this because of two different reasons. 1. it depends on what ISO character set you are using. 2. to accommodate for the above you need to verify that what comes out is indeed ASCII. There is no POSIX character list for [:ascii:]. The first one is the nature of the beast and a consequence of using a high level interpretor. The second one I find unexcusable and a glaring short coming in POSIX. Can some one tell my why there is no [:ascii:] list? I can only assume this is intentional but can not figure out why. -- +-(faux@fugozi)-(0.09|0.07|0.20)-(00:55|Mon Apr 01)-+ cat ~/.{sig,uin} It's a damn poor mind that can only think of one way to spell a word. - Andrew Jackson UIN=66618055