diff src/realpath.c @ 4834:b3ea9c582280

Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
author Ben Wing <ben@xemacs.org>
date Tue, 12 Jan 2010 01:38:04 -0600
parents 19d70297d866
children 19a72041c5ed
line wrap: on
line diff
--- a/src/realpath.c	Sun Jan 10 01:06:15 2010 -0600
+++ b/src/realpath.c	Tue Jan 12 01:38:04 2010 -0600
@@ -140,17 +140,13 @@
 #endif /* REALPATH_CORRECTS_CASE */
 #else /* defined (WIN32_ANY) */
 # ifdef CYGWIN
-  Ibyte *tmp;
   int n = qxe_readlink (name, buf, (size_t) size);
   if (n >= 0 || errno != EINVAL)
     return n;
 
   /* The file may exist, but isn't a symlink. Try to find the
      right name. */
-  tmp =
-    alloca_ibytes (cygwin_posix_to_win32_path_list_buf_size ((char *) name));
-  cygwin_posix_to_win32_path_list ((char *) name, (char *) tmp);
-  name = tmp;
+  LOCAL_FILE_FORMAT_TO_INTERNAL_MSWIN (name, name);
 # else
   if (mswindows_shortcuts_are_symlinks)
     {