21 Sep
2008
21 Sep
'08
9:51 a.m.
Dmitry Timoshkov a écrit :
From: "Eric Pouech" <eric.pouech(a)orange.fr> wrote:
+#include <ctype.h>
...
+ if (!ch || !isalpha(ch)) break;
Since that's apparently a Windows encoding shouldn't this be GetStringType() instead of isalpha()?
no, the issue (here) is about creeping control characters in the string (which shows a bogus file, not a mishandling of encoding) and also, it appears that the string is 7bit ascii, so isalpha is sufficient A+ -- Eric Pouech "The problem with designing something completely foolproof is to underestimate the ingenuity of a complete idiot." (Douglas Adams)