To Windows users who have non-ascii UserName

Siep Kroonenberg siepo at
Thu Apr 29 21:00:54 CEST 2021

On Thu, Apr 29, 2021 at 01:13:45PM +0900, Akira Kakuto wrote:
> > setx USERPROFILE "c:\Users\SuitableASCIIname"
> Thanks. Unfortunately this does not apply in the present case.
> echo %USERPROFILE% shows
> c:\Users\username
> not the symlink value
> c:\Users\SuitableASCIIname
> In the case
> set USERPROFILE=c:\Users\SuitableASCIIname
> echo %USERPROFILE% shows the symlink value
> c:\Users\SuitableASCIIname
> However this is of course temporal.
> Best,
> Akira

Userprofile seems to be a special case, and hard to override.

As to the symlink: the subst command is available to unprivileged
users. I tested the following batchfile:

reg add HKCU\software\microsoft\windows\currentversion\run /v "S Drive" /d "subst S: %userprofile%"
reg add HKCU\environment /v userprofile /d s:\
reg add HKCU\environment /v TEMP /d S:\appdata\local\temp
reg add HKCU\environment /v TMP /d S:\appdata\local\temp

The userprofile was the only thing that did not survive a re-login,
but the T[E]MP redefinitions held.

Note that the S:-drive came up several seconds after everything

See also

Siep Kroonenberg

More information about the tex-live mailing list.