Gary Kline wrote:
>       anybody know why getchar() doesn't see 0x80 == 0200?  if getchar()
>       is limited to 7-bit characters, what then?
>
>       % od -c file 
>
>       shows me that every character fits into 8 bits, so getwchar() is the 
> next thing.
>       but doesn't getwchar grab wide-chars only: 16 bits?
>
>       tia, guys,
>
>       gary
>
>
>
>   
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 Ç)
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
Çsdfa
Çsdfa
"
besides.. 0x80!=0200
it's 0200 octal which is 128 decimal...
Might be why it doesn't work for you.
Greetz,
Mark

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to