View Issue Details

IDProjectCategoryView StatusLast Update
0000639Apache 2.x Feature Requestpublic2014-12-29 21:21
ReporterSteven Levine Assigned Topsmedley  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionfixed 
PlatformOS2/eCSOSOS/2 or eComstationOS Version1.x 2.x or 4.5
Product Versionv2.2.32 
Target Versionv2.2.32 
Summary0000639: It would be handy is ab.exe wrote to stdout and stderr in text mode.
DescriptionThe attached patch should modify ab.c to write to stdout and stderr in text mode.
TagsNo 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 = "";
ab.c.diff (479 bytes)   

Activities

psmedley

2014-12-29 20:19

administrator   ~0002978

http://smedley.id.au/tmp/ab.zip contains this change

Steven Levine

2014-12-29 21:20

manager   ~0002980

Grumble. There must be something missing or some other output path. The testcase

  ab -c1 -n1 http://localhost/

still does Linux line endings.

Issue History

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