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

Re: Unicode allowables in Environment variables



You mentioned, or the issue that you referenced, mentioned that it was a zle interaction. I think candidates for odd insertions would be insert_unicode_char, insert-composed-char, expand-absolute-path, bracketed-paste-magic, send-invisible. While those look interesting as candidates, the zle is only involved with handling strings if it has been invoked, correct? I’m not sure there is a logic path to trigger these kinds of events. I figured I should mention it, since you have a better knowledge of the code-base than I do.

On a separate but possibly related note, More frequently lately, I have been having a heck of a time with a tty interrupt that happens when I do command-K, and then ls. The l gets gobbled, and then the tab completion on the ’s’ engages the tty interrupt. I have been reticent to explore it, however if the zle is injecting/transforming characters randomly, these issues could be related. I can’t reliably reproduce it and if we solve this issue, maybe the other will mysteriously go away. Wishful thinking.


> On Nov 4, 2024, at 17:28, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 
> 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