From: Eric Hodel Date: 2005-09-18T12:10:29+09:00 Subject: Re: StringScanner question On 17 Sep 2005, at 19:32, Jon A. Lambert wrote: > I'm using StringScanner to process network packets, and want to > know > whether I should be using getch or getbyte to decode them, especially > since I have 16 and 32 byte integers and other random binary > cruft. Now I haven't noticed anything out of the ordinary using > getch but the implied threats in the RI doc have me worried. > Anyone know what the difference is, if any? From looking at strscan.c, getch seems to be able to process multibyte characters. Use get_byte. -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04