On Mon, 30 Nov 2009, Maurilio Longo wrote:

Hi,

> could it be that OS/2 and DOS always require stdout/stderr to be in text mode?

This function has effect only on non POSIX compliant systems which
does not use "\n" as EOL and allows to enable automatic translation
for "\n" into "\r\n" so it works only in DOS, MS-WINDOWS and OS/2.
Clipper by default set 0, 1 and 2 descriptors into binary mode
disabling such translations so we are Clipper compatible now.
It means that if you will try to execute any code which expects
that "\n" will be translated to "\r\n" then just like in Clipper
it will not work correctly. But it does not mean that we should
change default BINARY mode to TEXT mode in DOS/WIN/OS2 builds.
We cannot make it because it breaks output in exiting Clipper
compatible code changing "\r\n" into "\r\r\n".

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to