bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invoking gunzip.exe


From: Eli Zaretskii
Subject: Re: invoking gunzip.exe
Date: Sun, 29 Apr 2007 06:22:42 +0300

> Date: Sat, 28 Apr 2007 20:25:56 -0400
> From: Christopher Faylor <address@hidden>
> 
> I agree that using -d in this fashion makes sense but adding a .exe to
> the end doesn't really help the Cygwin environment.  I don't understand
> (but don't really have to understand) the rationale for including it in
> a Windows environment.  Nevertheless, the explicit use of .exe only
> confuses matters on Cygwin.

What are the problems with this on Cygwin?

> --- lib/system.h.orig 2004-04-26 09:56:57.000000000 -0400
> +++ lib/system.h      2007-04-24 09:15:14.417656849 -0400
> @@ -219,9 +219,14 @@
>  # ifdef __CYGWIN__
>  #  define DEFAULT_TMPDIR     "/tmp/"
>  #  define PATH_SEP   ":"
> +#  define STRIP_DOT_EXE      0
> +#  undef NULL_DEVICE
> +#  define NULL_DEVICE "/dev/null"
> +#  define PIPE_USE_FORK      1
>  # else  /* O_BINARY && !__CYGWIN__ */
>  #  define DEFAULT_TMPDIR     "c:/"
>  #  define PATH_SEP   ";"
> +#  define STRIP_DOT_EXE      1
>  # endif /* O_BINARY && !__CYGWIN__ */
>    /* Back to any O_BINARY system.  */
>  # define FILENAME_CMP        strcasecmp
> @@ -233,7 +238,6 @@
>  # define IS_ABSOLUTE(n)      (IS_SLASH((n)[0]) || ((n)[0] && (n)[1] == ':'))
>  # define PIPE_USE_FORK       0
>  # define SET_BINARY(f)  do {if (!isatty(f)) setmode(f,O_BINARY);} while(0)
> -# define STRIP_DOT_EXE       1
>  
>  #else  /* not O_BINARY, i.e., Unix */
>  # define SET_BINARY(f)       (void)0

With this change, I think the way I suggested to modify filesys.c in
my other message will do what you want on Cygwin.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]