This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients
Date 2002-11-29.21:11:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=113328

My problem turns out to be an interaction with the 
new "universal newline support". In find_module, within the 
switch(path_type), case PY_IMP_LISTDIR, the section of 
code marked /* Search the list of suffixes: .pyc, .pyd, ... */ 
tries to do fopen(buf, fdp->mode). But .py files are now 
mode 'U' (universal newline) which is not a valid mode for fopen
(). I've made a fix, but I'm not sure how reliable it is.

On a related note, I'm not 100% sure how robust the code is 
in the presence of case-insensitive filesystems. I'm way out of 
my depth in this code, so I don't know if I'll be able to fix it, 
but I'll have a look (and I'll look at your version of the patch, as 
well).
History
Date User Action Args
2007-08-23 15:18:40adminlinkissue645650 messages
2007-08-23 15:18:40admincreate