Fixes Non-ASCII username issue reported in #731

This commit is contained in:
Babil Golam Sarwar 2018-06-25 07:41:58 +10:00
parent 335e994349
commit e0c61d53c5
No known key found for this signature in database
GPG key ID: 8EA67D99F433E92D

View file

@ -273,16 +273,17 @@ function Get-MessengerBinWrapperPath() {
function Set-MessengerBinWrapper() { function Set-MessengerBinWrapper() {
$messengerBinPath = Get-MessengerBinPath $messengerBinPath = Get-MessengerBinPath
$messengerBinWrapperPath = Get-MessengerBinWrapperPath $messengerBinWrapperPath = Get-MessengerBinWrapperPath
$messengerBinName = $global:MessengerBinPyName
if ($global:NoPython -eq $false) { # system has python3 if ($global:NoPython -eq $false) { # system has python3
$messengerWrapperContent = @" $messengerWrapperContent = @"
@echo off @echo off
call $global:WinPython3Command $messengerBinPath call $global:WinPython3Command $messengerBinName
"@ "@
} else { ## system does _not_ have python3 } else { ## system does _not_ have python3
$messengerWrapperContent = @" $messengerWrapperContent = @"
@echo off @echo off
call $messengerBinPath call $messengerBinName
"@ "@
} }