Subject: Re: bug#27706: MacOS: decode-time hang

From: Alan Third <[email-masked]>
Date: Sat, 30 Sep 2017 21:21:02 +0100

On Sat, Sep 30, 2017 at 09:09:08PM +0200, Charles A. Roelli wrote:
> +                     (if (and (featurep 'ns)
> +                              (string-match-p
> +                               "10\\.6\\.[[:digit:]]"
> +                               (shell-command-to-string
> +                                "sw_vers -productVersion")))

I can’t speak for the issue generally as I don’t know what this code
does, but this particular check looks incorrect to me.

sw_vers doesn’t exist on GNU/Linux, and probably other platforms that
GNUstep runs on, so you can’t just use a check for NS. Probably you
need to check for Darwin, which should work on terminal only versions
of Emacs too.

    (string-equal system-type "darwin")

(There may be other ways to check, this is the only one I know.)
-- 
Alan Third