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

Re: Unicode allowables in Environment variables



On Mon, Nov 4, 2024 at 4:58 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> What I found is that in the erroring case, when we get to subst.c:169
> in prefork(), the value returned from paramsubst() contains
>
> App\360\224\256Bundles/Configurations/Zsh/•Z

It may be remnulargs() that then mangles this into something that
attempts globbing.

On the Ubuntu filesystem when I "mkdir" with the string copy-pasted
from William's original message, I get a third variation:

App\360\237\224\256Bundles

> However, if I then "fix" ZDOTDIR by assigning from $(printenv), upon
> getting back to that line in prefork() the value instead contains
>
> App\360\203\277\203\264\256Bundles/Configurations/Zsh/ \202Z

I still get this transformation on Ubuntu, though, so it's not
entirely a MacOS wcwidth thing.




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