For those of you with seven bit news readers, that was
a y-diaeresis character in the quote (0xff or 0377) that
causes the problem. I'm generating this character by
remapping a key on my keyboard to provide it.
Environment:
SunOS 4.1.3
Python 1.2
Compiled with gcc 2.6.?
No readline
Generally this works with other eight bit characters but
not with 0xff. It is related to the fact that the default
character type in my build is a signed char so
(int)c =3D (char)(0xff) is being set to -1 rather than 0xff
by the tokenizer. My solution was to change all the
char definitions in struct tok_state into unsigned chars.
This could also have been done using the gcc compiler
flag to set the default to unsigned char.
If anyone can tell me how to turn off readline completely
(through the .inputrc, not by recompiling) so I can type
these eight bit characters in directly, I'd appreciate it.
Chris