X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Wed, 24 Jun 2009 12:43:10 +0200
Message-ID: <6910a60906240343u3a1c8f3v5adadf68a8c3b83a@mail.gmail.com>
Subject: undef WIN32_FILENAMES with cygwin-1.7
From: Reini Urban <rurban@x-ray.at>
To: xemacs-beta@xemacs.org
Cc: The Cygwin Mailing List <cygwin@cygwin.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

cygwin-1.7 removed support for accepting win32 style pathnames.
xemacs should follow.

The particular problem was file-truename returning a fabricated windows path,
instead of the POSIX path, which for example failed the mule testsuite for me.


diff -u xemacs-21.5.28/src/fileio.c.orig xemacs-21.5.28/src/fileio.c
--- xemacs-21.5.28/src/fileio.c.orig    2007-02-22 17:19:43.000000000 +0100
+++ xemacs-21.5.28/src/fileio.c 2009-06-24 12:35:05.703125000 +0200
@@ -59,7 +59,11 @@
 #endif /* HPUX */

 #ifdef WIN32_ANY
+#if (CYGWIN_VERSION_API_MINOR >= 181)
+#undef WIN32_FILENAMES
+#else
 #define WIN32_FILENAMES
+#endif
 #include "syswindows.h"
 #define IS_DRIVE(x) isalpha (x)
 /* Need to lower-case the drive letter, or else expanded

-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

