🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #936

Re: (fairly minor) non-bug in Microsoft C6.0

#936
From: Kenneth J. Buck
Date: Wed, 11 Jul 1990 17:53
15 lines
1201 bytes
In article <1829@ns-mx.uiowa.edu> cmdglv@vaxa.weeg.uiowa.edu writes:
>      Here's a fun little bug that I just discovered in Microsoft C V6.0.
>             printf("Question marks: '??'");
>      I get the following output:
                      Question marks: '^

Aaahh! but not a bug, I'm afraid...
Note on page 424 of TFM (MSC Advanced Programming Techniques manual),
in the section B.1.7 titled Trigraphs, it is mentioned that the character
sequence ??' translates into the circumflex character.  This is included 
in the ANSI standard for Trigraph sequences.  Sorry, but you'll have to
change your program.

Note:  one way to do this is to use the string concatenation feature, as in:
       printf ("Question marks: '?" "?'");
Technical Details
Message-ID: <1990Jul11.175340.12779@granite.cr.bull.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!mailrus!bbn.com!mips2!granite!buck
References: <1829@ns-mx.uiowa.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!mailrus!bbn.com!mips2!granite!buck
From: buck@granite.cr.bull.com (Kenneth J. Buck)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: (fairly minor) non-bug in Microsoft C6.0
Keywords: Microsoft C V6, bug
Message-ID: <1990Jul11.175340.12779@granite.cr.bull.com>
Date: 11 Jul 90 17:53:40 GMT
References: <1829@ns-mx.uiowa.edu>
Organization: Bull HN Information Systems Inc.
Lines: 15