e.g. path="/usr/GNUstep/System/Library"


  else if (c_path[0] == '/')
    {
      NSDictionary  *env;
      env = [[NSProcessInfo processInfo] environment];
      if ([env objectForKey: @"CYGWIN"])
        {
          /* FIXME: Find cygwin drive? */
          newpath = @"c:/cygwin";
          newpath = [newpath stringByAppendingPathComponent: path];
          newpath = [newpath stringByReplacingString: @"/" withString:
@"\\"];
        }
    }


I don't have an environment variable named CYGWIN in my CYGWIN bash! Even if
I would export it, my cygwin dir is e:/cygwin. I suggest to export
CYGWIN_HOME as home directory for cygwin:

  else if (c_path[0] == '/')
    {
      NSDictionary  *env;
      NSString      *cyghome;
      env = [[NSProcessInfo processInfo] environment];

      cyghome = [env objectForKey: @"CYGWIN_HOME"];
      if (cyghome)
        {
          /* FIXME: Find cygwin drive? */
          newpath = cyghome;
          newpath = [newpath stringByAppendingPathComponent: path];
          newpath = [newpath stringByReplacingString: @"/" withString:
@"\\"];
        }
    }

Michael


_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to