Re: [Python-Dev] OT: fdopen on Windows question

2006-10-21 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > That is, can I change stdin from text to binary this way or is it destined > to always be in text mode? You can call _setmode on the file descriptor. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org http://m

[Python-Dev] OT: fdopen on Windows question

2006-10-20 Thread skip
Sorry for the off-topic post. I figured someone here would know the answer and I don't have access to Windows to check experimentally. The ocrad program opens its input like so: if ( std::strcmp( infile_name, "-" ) == 0 ) infile = stdin; else infile = std::fopen( infile_