Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Unicode allowables in Environment variables



On Tue, Nov 5, 2024 at 3:06 PM William DeShazer <earl.deshazer@xxxxxxxxx> wrote:
>
> I am not sure what the proper protocol is on such an issue. I intend to use the https://github.com/apple-oss-distributions/zsh distribution to apply your patch, but the README has these instructions:
>
> > To upgrade to a new version of zsh:

Those instructions imply that you're downloading a full new set of
sources from the zsh upstream.  If you just want to apply a single
patch, you can just create a branch, patch the source on that branch,
compile, and test the resulting binary.  Obviously some patches won't
apply if you don't have the upstream source, but in this case the
change is small and isolated, so patching should not present an issue
... you could even make the edit by hand.

> diff --git a/Src/params.c b/Src/params.c
> index acd577527..25a831ed7 100644
> --- a/Src/params.c
> +++ b/Src/params.c
> @@ -3065,7 +3065,7 @@ mod_export char *
> getsparam_u(char *s)
> {
>     if ((s = getsparam(s)))
> -    return unmetafy(s, NULL);
> +    return unmeta(s);
>     return s;
> }




Messages sorted by: Reverse Date, Date, Thread, Author