From: <bi...@us...> - 2009-04-29 21:54:21
|
Revision: 4556 http://oorexx.svn.sourceforge.net/oorexx/?rev=4556&view=rev Author: bigrixx Date: 2009-04-29 21:54:19 +0000 (Wed, 29 Apr 2009) Log Message: ----------- [ oorexx-Bugs-2783720 ] some nobuffer charout() tests fail Modified Paths: -------------- main/branches/4.0beta/trunk/interpreter/streamLibrary/StreamNative.cpp Modified: main/branches/4.0beta/trunk/interpreter/streamLibrary/StreamNative.cpp =================================================================== --- main/branches/4.0beta/trunk/interpreter/streamLibrary/StreamNative.cpp 2009-04-29 21:53:56 UTC (rev 4555) +++ main/branches/4.0beta/trunk/interpreter/streamLibrary/StreamNative.cpp 2009-04-29 21:54:19 UTC (rev 4556) @@ -2253,17 +2253,17 @@ raiseException(Rexx_Error_Incorrect_method); } - // If read/write/both/append not specified, the default is BOTH APPEND. + // If read/write/both/append not specified, the default is BOTH, with the initial + // positioning at the end // (According to the current doc.) if (!(oflag & (O_WRONLY | RDWR_CREAT )) && !read_only) { oflag |= O_RDWR | RDWR_CREAT; /* set this up for read/write mode */ pmode = IREAD_IWRITE; /* save the pmode info */ read_write = true; - - if (!(oflag & (O_TRUNC | O_APPEND))) + // remember the append status + if ((oflag & O_APPEND) != 0) { - oflag |= O_APPEND; append = true; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |