Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Sep 2009 08:00:27 +0200
From:      Mark Stapper <stark@mapper.nl>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: how to get rid of a character, 0x80?
Message-ID:  <4AA5F2FB.8080006@mapper.nl>
In-Reply-To: <20090908045202.GA16556@thought.org>
References:  <20090908045202.GA16556@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig4D9B447E5D8A59D8C145AE86
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Gary Kline wrote:
> 	anybody know why getchar() doesn't see 0x80 =3D=3D 0200?  if getchar()=

> 	is limited to 7-bit characters, what then?
>
> 	% od -c file=20
>
> 	shows me that every character fits into 8 bits, so getwchar() is the n=
ext thing.
> 	but doesn't getwchar grab wide-chars only: 16 bits?
>
> 	tia, guys,
>
> 	gary
>
>
>
>  =20
Hello,

First of, this isn't really a BSD question.
Second, if you have an example code we might be able to help.
Presumably, you want to read a capital C with cedille? (0x80 128 =C7)
Example from: http://www.cplusplus.com/reference/clibrary/cstdio/getchar/=

compiled on FreeBSD 7.2 with gcc 4.2.1 output:
"
Enter text. Include a dot ('.') in a sentence to exit:
sfeo
sfeo
=C7sdfa
=C7sdfa
"
besides.. 0x80!=3D0200
it's 0200 octal which is 128 decimal...
Might be why it doesn't work for you.
Greetz,
Mark


--------------enig4D9B447E5D8A59D8C145AE86
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkql8v0ACgkQN9xNqOOVnWBUFgCfZJz2JbaWsrpJhSa6vZ4SeNjm
v00AoIIHVdzWb2PHDb26KDq2dQ22wLMd
=D+QA
-----END PGP SIGNATURE-----

--------------enig4D9B447E5D8A59D8C145AE86--



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