Re: making scanf byte-clean(er)

2010-01-10 Thread Corinna Vinschen
On Jan 10 19:39, Andy Koppe wrote: > Attached is a patch for making the scanf format string (more) > byte-transparent. It actually couldn't deal with non-ASCII chars at > all, even valid ones, due to comparing an 'unsigned char' with a > (signed) 'char'. And when encountering an invalid byte, it wo

making scanf byte-clean(er)

2010-01-10 Thread Andy Koppe
Attached is a patch for making the scanf format string (more) byte-transparent. It actually couldn't deal with non-ASCII chars at all, even valid ones, due to comparing an 'unsigned char' with a (signed) 'char'. And when encountering an invalid byte, it would go backwards in the format string. Fina