OS/400 ascii fputc wrapper deviates from the posix standard by the
fact that it returns the ebcdic encoding of the original ascii
character. Testing for a matching value for success will then always
fail.
This commit replaces the chariacter comparison by an explicit error
return check.
Follow-up to
ef2cf58
Closes #13367
int out = outc;
FILE *s = f;
int rc = fputc(out, s);
- if(rc == out)
- return 0;
- return 1;
+ return rc == EOF;
}
int curl_mprintf(const char *format, ...)