Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: simple C
- To: tlug@example.com
- Subject: Re: tlug: simple C
- From: Manuel Chakravarty <chak@example.com>
- Date: Fri, 27 Feb 1998 10:07:51 +0900
- CC: tlug@example.com
- In-reply-to: <XFMail.980227010438.schweiz@example.com> (message from JimSchweizer on Fri, 27 Feb 1998 00:46:21 +0900 (JST))
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
Hi Jim, > I made the mistake of opening one of those dusty C books tonight > to experiment with some ASCII. Now I'm really confused. Suppose > I have a head.h with: > > ----------------------------------- > schweiz:~/devel/C/scratch$ less head.h > /* This is my li'l header file. */ > > #define CONFUSED 227 > > ----------------------------------- > > and a test file with: > > ----------------------------------- > schweiz:~/devel/C/scratch$ less htest1.c > #include <stdio.h> > #include "head.h" > > void main() > { > printf("this guy is confused: %c\n",CONFUSED); > } > ----------------------------------- > > and I compile it with gcc htest1.c -ohtest1 > > but I get: > schweiz:~/devel/C/scratch$ htest1 > this guy is confused: ,Ac(B > > *********** > > What I see is an 'a' with a tilde over it, not the pi sign my > ASCII table says I should be getting... How about the following theory: Your terminal uses a latin-1 font, but the ASCII table in your book is not latin-1, but sombody elses idea on how to use those characters above 127. In other words, this problem has (I guess) nothing to do with C or your program, it is just a matter of using the right font. (But maybe the encoding printed in your old C book isn't used anymore these days...) Cheers, Manuel --------------------------------------------------------------- Next TLUG Nomikai: 11 March Wed 1998 Tengu TokyoEkiMae 19:30 Chuo-ku, Kyobashi 1-1-6, EchiZenYa Bld. B1/B2 03-3275-3691 Next TLUG Meeting: 11 April 1998 Saturday, Tokyo Station Featuring Tague Griffith of Netscape i18n talking on source code --------------------------------------------------------------- a word from the sponsor: TWICS - Japan's First Public-Access Internet System www.twics.com info@example.com Tel:03-3351-5977 Fax:03-3353-6096
- References:
- tlug: simple C
- From: Jim Schweizer <schweiz@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: simple C
- Next by Date: Re: tlug: s'up?
- Prev by thread: Re: tlug: simple C
- Next by thread: Re: tlug: simple C
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links