Can perl and C have "different" STDERRs on windows?
No. There is only one STDERR on windows and it is always fileno 2. Perl wraps things so that stderr is a variable, but fileno 2 is always the original stderr.
AFAIK, despite claims to the contrary, there is no way to get it to work on win32.
If it was possible it would work already :)
| [reply] |
| [reply] [d/l] [select] |
fprintf( stderr, ... );
Without perl crashing in a heap around your ears.
However, if in your XS code, you #undef stderr to bypass the ridiculous PerlIO redefinitions, things begin to work. But you also have to defeat all the other pointless PerlIO redefinitions.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
| [reply] [d/l] |
| [reply] |