View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000639 | Apache 2.x | Feature Request | public | 2014-12-29 17:31 | 2014-12-29 21:21 |
Reporter | Steven Levine | Assigned To | psmedley | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | fixed | ||
Platform | OS2/eCS | OS | OS/2 or eComstation | OS Version | 1.x 2.x or 4.5 |
Product Version | v2.2.32 | ||||
Target Version | v2.2.32 | ||||
Summary | 0000639: It would be handy is ab.exe wrote to stdout and stderr in text mode. | ||||
Description | The attached patch should modify ab.c to write to stdout and stderr in text mode. | ||||
Tags | No tags attached. | ||||
Attached Files | ab.c.diff (479 bytes)
diff --git a/support/ab.c b/support/ab.c index 25fc0e0..95b7cd5 100644 --- a/support/ab.c +++ b/support/ab.c @@ -2027,6 +2027,11 @@ int main(int argc, const char * const argv[]) AB_SSL_METHOD_CONST SSL_METHOD *meth = SSLv23_client_method(); #endif +# ifdef OS2 /* 2014-12-29 SHL want text output for OS2 */ + _fsetmode(stdout, "t"); + _fsetmode(stderr, "t"); +# endif + /* table defaults */ tablestring = ""; trstring = ""; | ||||
|
http://smedley.id.au/tmp/ab.zip contains this change |
|
Grumble. There must be something missing or some other output path. The testcase ab -c1 -n1 http://localhost/ still does Linux line endings. |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-12-29 17:31 | Steven Levine | New Issue | |
2014-12-29 17:31 | Steven Levine | File Added: ab.c.diff | |
2014-12-29 20:19 | psmedley | Note Added: 0002978 | |
2014-12-29 20:19 | psmedley | Status | new => resolved |
2014-12-29 20:19 | psmedley | Resolution | open => fixed |
2014-12-29 20:19 | psmedley | Assigned To | => psmedley |
2014-12-29 21:20 | Steven Levine | Note Added: 0002980 | |
2014-12-29 21:20 | Steven Levine | Status | resolved => assigned |
2014-12-29 21:21 | Steven Levine | Description Updated |