[ python-Bugs-1675026 ] Redirect cause invalid descriptor error

SourceForge.net noreply at sourceforge.net
Fri Mar 9 09:25:57 CET 2007


Bugs item #1675026, was opened at 2007-03-06 16:58
Message generated for change (Comment added) made by theller
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1675026&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Windows
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jean-Marc Ranger (jmranger)
Assigned to: Nobody/Anonymous (nobody)
Summary: Redirect cause invalid descriptor error

Initial Comment:
Test setup:
- Windows 2000 (french)
- Python 2.5 (reproducible with 2.4.2 and 2.4.4)

One python source file, test.py:
---
  import os
  print os.system("echo test")
---

Console output:
---
C:\test>test.py
test
0

C:\test>test.py > test.log
Descripteur non valide

C:\test>type test.log
0

C:\test>c:\python25\python test.py
test
0

C:\test>c:\python25\python test.py > test.log

C:\test>type test.log
test
0

C:\test>
---

The "Descripteur non valide" error would translate to "invalid file descriptor".

I would expect the 2nd call to perform the same way the 4th does.


----------------------------------------------------------------------

>Comment By: Thomas Heller (theller)
Date: 2007-03-09 09:25

Message:
Logged In: YES 
user_id=11105
Originator: NO

This is a windows bug.  See the Microsoft Knowledge Base:

http://support.microsoft.com/kb/321788

This entry talks about Windows 2000.  I do not use Windows 2000 anymore,
so I cannot test on this version.  I have created the registry entry that
is mentioned on WinXP SP2 (German version, fwiw), and it does fix the
problem.  I had to open a new command window after changing the registry.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2007-03-09 08:10

Message:
Logged In: YES 
user_id=21627
Originator: NO

Do you have an explanation for the cause of the problem?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1675026&group_id=5470


More information about the Python-bugs-list mailing list