delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/07/03:17:26

From: "Thomas Mueller" <tmueller AT bluegrass DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: if
Date: 7 Nov 2002 08:06:44 GMT
Lines: 24
Message-ID: <aqd6uk$8sjj7$2@ID-49635.news.dfncis.de>
References: <3dc54df2_2 AT mk-nntp-2 DOT news DOT uk DOT tiscali DOT com> <aq5n54$nrd$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: tnt01-95-174.bluegrass.net (216.135.95.174)
Mime-Version: 1.0
X-Trace: fu-berlin.de 1036656404 9326183 216.135.95.174 (16 [49635])
X-Mailer: NOS-BOX 2.05
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

James Patterson <jp20 AT tinyworld DOT co DOT uk> wrote:
> Why would the DJGPP compiler give this error message "stray '\335' in
> program" for this line "if((x == 20) || (i == 90))" Thanks in advance.

Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) responded:

> Trust the poster to be from the UK whenever this particular issue
> comes up... ;-)

> For some insane reason, the UK mapping for PC keyboards has *two* keys
> that produce a vertical bar: one has a break in the middle, the other
> doesn't.  Use the other one and you'll be happy.  \335 is character
> code 221 (you get that by pressing Alt-<2 2 1>).  The proper ASCII code for
> | is 124.

I presume you were looking at these characters in the DOS or US-ASCII charset
rather than any of the ISO-8859-x international charsets commonly used in
email and news?  ASCII 221 Ý looks like a solid vertical bar but longer and
thicker than ASCII 124 | .  Whether ASCII 124 character shows with a break in
the middle depends on the OS and the BIOS.  When I had OS/2 on the old
computer, ASCII 124 showed with a break in the middle in straight DOS, but
solid in OS/2, which I believe overrode the BIOS.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019