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

Re: Unicode allowables in Environment variables



I'm not sure why unmetafy() is munging it at all, though, as none of the bytes in the UTF-8 encoding of either of our emojiful pathnames is equal to Meta (0x83). 
🔮 is 0xf0 0x9f 0x94 0xae, and 🍇 is 0xf0 0x9f 0x8d 0x87.  Possibly because it proceeds right on past the nul terminator if the string has no Meta in it. That seems like a bug.



On Mon, Nov 4, 2024 at 3:53 PM William DeShazer <earl.deshazer@xxxxxxxxx> wrote:
Yes. I can confirm that I had to reset it at every stage. That’s not a horrible solution, but I was worried that there might be some things under the hood that would not set correctly if the value wasn't  retained between configuration files. I’ll go ahead and try to do a custom development build to see if I can help with the resolution. Im just happy to be validated. I was sure it was my ignorance. I appreciate the support.

Will

On Nov 4, 2024, at 12:31, Mark J. Reed <markjreed@xxxxxxxxx> wrote:

Looks like once it's munged, it doesn't change any more. So the re-munging (getsparam_u() or whatever) must be idempotent.

<image.png>

I also tried adding corrections immediately after the echos. It was fine at the start of /etc/zshenv, corrupted at the start of ~/.zshenv, back to fine at the start of /etc/zshrc, and corrupted again at the start of ~/.zshrc, which makes sense if the problem is sourcehome().

On Mon, Nov 4, 2024 at 3:07 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
On Mon, Nov 4, 2024 at 11:15 AM Mark J. Reed <markjreed@xxxxxxxxx> wrote:
>
> It does seem to get munged a second time. If I put a correcting ZDOTDIR=$(printenv ZDOTDIR) at the top of /etc/zshrc, it's again unechoable by the time I get a prompt.

If you DO NOT correct it in /etc/zshrc, just echo it at every point,
is the pattern different each time? (Try "noglob echo ..." for the raw
string?)


--
Mark J. Reed <markjreed@xxxxxxxxx>



--
Mark J. Reed <markjreed@xxxxxxxxx>


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