This is because the stderr output contains \r\n in that environment which
effectively erases whatever is written to stderr. Here is one simple fix.
from java.lang import *
System.setProperty("line.separator", "\n")
Add this to your sitecustomize.py or whatever startup script you use so you
don't have to type it everytime.
--Vishal
----- Original Message -----
From: <jython-dev-admin@...>
To: <jython-dev@...>
Sent: Friday, September 05, 2003 12:13 AM
Subject: [Jython-dev] No stderr output under emacs
I am trying to run jython in an NTemacs (21.2) shell process that starts
a Cygwin bash shell. My problem is that I do not see the stderr output.
While I/O issues in a mixed Win32 (i.e., NTemacs) and Cygwin envi-
ronment are reportedly very complex, this particular problem seems
specific to jython because another java-based interpreter: djava, does
not suffer from it. I've looked at the djava sources and it just calls
printStackTrace on trapped exceptions: nothing special. OTOH I have
looked at the jython sources, too, and I am not sure I understand what
they do except that it is much more involved.
-- O.L.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jython-dev mailing list
Jython-dev@...
https://lists.sourceforge.net/lists/listinfo/jython-dev
|