Subject: Re: bug#2062: PATH can contain non-expanded variables

From: Jason Rumney <[email-masked]>
Date: Tue, 27 Jan 2009 17:24:07 +0800

Juanma Barranquero wrote:
> On Tue, Jan 27, 2009 at 02:56, Jason Rumney <[email-masked]> wrote:
>
>   
>> The right place to do this expansion is where the variable is read from the
>> registry, and only when the type is REG_EXPAND_SZ.
>>     
>
> The problem is, we don't read
> "HKLM\Software\Microsoft\Windows\CurrentVersion\App
> Paths\emacs.exe\Path", we find the PATH made for us and it contains
> unexpanded variables.
>   

If the system does not handle REG_EXPAND_SZ in the App Paths registry 
values, then the bug is with whatever incorrectly used that type when 
setting the registry value.