undef WIN32_FILENAMES with cygwin-1.7

Reini Urban rurban@x-ray.at
Wed Jun 24 12:19:00 GMT 2009


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



More information about the Cygwin mailing list