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

Re: Certain unicode in hostname breaks with zsh 4.3.17



On Mar 12, 11:10am, Peter Stephenson wrote:
>
> @@ -739,7 +741,7 @@ createparamtable(void)
>  			pm->env = mkenvstr (pm->node.nam,
>  					    getsparam(pm->node.nam), pm->node.flags);
>  		    else
> -			pm->env = ztrdup(*envp2);
> +			pm->env = ztrdup_metafy(*envp2);
>  #ifndef USE_SET_UNSET_ENV
>  		    *envp++ = pm->env;
>  #endif

I'm not sure that's correct.  pm->env is being copied directly into the
global environ array in the USE_SET_UNSET_ENV case.  Surely it'll play
havok to put metafied strings into the environment of forked children?
Or is that cleaned up somewhere else?



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