[Patches] [Patch #103154] Cygwin Check Import Case Patch

noreply@sourceforge.net noreply@sourceforge.net
Mon, 08 Jan 2001 21:11:46 -0800


Patch #103154 has been updated. 

Project: python
Category: core (C code)
Status: Open
Submitted by: jlt63
Assigned to : nobody
Summary: Cygwin Check Import Case Patch

Follow-Ups:

Date: 2001-Jan-08 21:11
By: jlt63

Comment:
[The formating was lost on my initial post, so I try again.  Sigh...]

This patch enables the imported module name case checking code
for Cygwin that is already enabled by default for Win32.  Use
the configure --with-check-import-case option to enable this
feature.

Without this patch, the following code from getpass.getuser()
behaves incorrectly:

import termios, TERMIOS

The folowing is a ChangeLog:

Mon Jan  8 23:54:00 2001  Jason Tishler <jt@dothill.com>

* acconfig.h: Add CHECK_IMPORT_CASE #undef.
* configure.in: Add --with-check-import-case section.
* Python/import.c: Enable case checking code for Cygwin too.
Include sys/cygwin.h, if appropriate.
(check_case): Add munging of module path from POSIX to Win32
so FindFirstFile() can cope, if appropriate.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=103154&group_id=5470