View Issue Details

IDProjectCategoryView StatusLast Update
0000639Apache 2.x Feature Requestpublic2014-12-30 07:51
ReporterSteven LevineAssigned Topsmedley 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionfixed 
PlatformOS2/eCSOSOS/2 or eComstationOS Version1.x 2.x or 4.5
Product Versionv2.2.32 
Target Versionv2.2.32Fixed in Version 
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.

Activities

Steven Levine

2014-12-30 04:01

manager  

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)

psmedley

2014-12-30 06:49

administrator   ~0002978

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

Steven Levine

2014-12-30 07:50

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-30 04:01 Steven Levine New Issue
2014-12-30 04:01 Steven Levine File Added: ab.c.diff
2014-12-30 06:49 psmedley Note Added: 0002978
2014-12-30 06:49 psmedley Status new => resolved
2014-12-30 06:49 psmedley Resolution open => fixed
2014-12-30 06:49 psmedley Assigned To => psmedley
2014-12-30 07:50 Steven Levine Note Added: 0002980
2014-12-30 07:50 Steven Levine Status resolved => assigned
2014-12-30 07:51 Steven Levine Description Updated View Revisions