Skip to content

Commit

Permalink
fix option parsing of --binary on non-Windows platforms (#3131)
Browse files Browse the repository at this point in the history
`-b`/`--binary` should be accepted on all platforms so that they can be used in
code that is meant to be portable.

Signed-off-by: Christoph Anton Mitterer <[email protected]>
  • Loading branch information
calestyo committed May 29, 2024
1 parent 7cd23f1 commit 5208a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ int main(int argc, char* argv[]) {
_setmode(fileno(stdin), _O_BINARY);
_setmode(fileno(stdout), _O_BINARY);
_setmode(fileno(stderr), _O_BINARY);
if (!short_opts) continue;
#endif
if (!short_opts) continue;
}
if (isoption(argv[i], 0, "tab", &short_opts)) {
dumpopts &= ~JV_PRINT_INDENT_FLAGS(7);
Expand Down

0 comments on commit 5208a44

Please sign in to comment.