Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2008 18:20:58 -0500
From:      Robert Huff <roberthuff@rcn.com>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   trying to catch the triple '\0342', '\0200', '\0220' but cannot.
Message-ID:  <18728.37850.357625.984982@jerusalem.litteratus.org>
In-Reply-To: <20081122231556.GA60364@thought.org>
References:  <20081122231556.GA60364@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Gary Kline writes:

>  	can somebody help me catch the OOo "'" (aposhtrophe)?  It's a triplet
>  	of the hex chars, xe2, x80, x90, which should be seeable by getchar()
>  	[[or *not*?]].  The octal are 0342, 0200, and 0220.
>  
>  	The first is, is a-circumflex.  Why doesn't 
>  
>  		if ((ch1 = getchar()) == '\0342') or, more simply,
>  		if ((ch1 = getchar()) == '\342')
>  	catch the first?  Is getchar limited to only 7 bytes??

	Perhaps you want getwc()?


			Robert Huff




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18728.37850.357625.984982>