Skip to content

mprintf: check fputc error rather than matching returned character - #13367

Closed
monnerat wants to merge 1 commit into
curl:masterfrom
monnerat:fputc-result
Closed

mprintf: check fputc error rather than matching returned character#13367
monnerat wants to merge 1 commit into
curl:masterfrom
monnerat:fputc-result

Conversation

@monnerat

@monnerat monnerat commented Apr 14, 2024

Copy link
Copy Markdown
Contributor

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.

Fixup to ef2cf58

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.

Fixup to #ef2cf58
@bagder

bagder commented Apr 15, 2024

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in 6e8a603 Apr 15, 2024
@monnerat
monnerat deleted the fputc-result branch April 15, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants