sys.stdin on windows
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Sep 3 21:41:57 EDT 2008
More information about the Python-list mailing list
Wed Sep 3 21:41:57 EDT 2008
- Previous message (by thread): sys.stdin on windows
- Next message (by thread): sys.stdin on windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
En Wed, 03 Sep 2008 07:16:12 -0300, Tim Golden <mail at timgolden.me.uk> escribi�: > Gabriel Genellina wrote: >> En Wed, 03 Sep 2008 06:16:03 -0300, zugnush at gmail.com >> <zugnush at gmail.com> escribi�: >> >>> When I try to run the same thing on windows I get >>> IOError: [Error 9] Bad file descriptor >>> >>> How can I make this more windows friendly? >> Explicitely invoking the interpreter worked for me. That is, these two >> commands worked fine: >> type test.txt | python count.py >> python count.py < test.txt >> But I cannot explain *why* it doesn't work the other way. > > Known bug in NT-based file association. I'll try to find an online > reference, but that's basically > what it comes to. I think you can faff-about with > batch files to achieve the effect, but I can't > quite remember. > > http://support.microsoft.com/kb/321788 Uhmm... That KB article says the bug was corrected in Windows XP SP1, but I have SP3 installed and the test failed. Updating the registry by hand solved the problem. A regression maybe? -- Gabriel Genellina
- Previous message (by thread): sys.stdin on windows
- Next message (by thread): sys.stdin on windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list