To Windows users who have non-ascii UserName

Akira Kakuto kakuto at w32tex.org
Thu Apr 29 23:24:08 CEST 2021


On 2021/04/30 4:00, Siep Kroonenberg wrote:
> 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
> else.
> 
> See also https://superuser.com/questions/29072/how-to-make-subst-mapping-persistent-across-reboots

I have changed runscript.tlu to support non-ascii user name
in TeXWorks, and have sent a patch to texdoc maintainers to
support non-ascii user name in texdoc.
So I hope those problems in windows will be solved soon.

Thanks,
Akira



More information about the tex-live mailing list.