os_win32/update-smart-drivedb.ps1.in: Set console encoding.
Otherwise redirection to gpg occasionally starts with a BOM. git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5329 4ea69e1a-61f1-4043-bf83-b5c94c648137
Этот коммит содержится в:
родитель
a38ac76eb6
Коммит
677aa9f419
@ -2,6 +2,9 @@ $Id$
|
||||
|
||||
2022-02-22 Christian Franke <franke@computer.org>
|
||||
|
||||
os_win32/update-smart-drivedb.ps1.in: Set console encoding.
|
||||
Otherwise redirection to gpg occasionally starts with a BOM.
|
||||
|
||||
os_win32/update-smart-drivedb.ps1.in: Unify path syntax.
|
||||
|
||||
do_release: Update code signing key id.
|
||||
|
@ -490,11 +490,15 @@ Q/qvYlwkbKOdlahjoHrFlkhADSBaO9N1OZp3OYDjziIujMdt2IPKnmM=
|
||||
function run_join_out_err($cmd) # $arg1, $arg2, ...
|
||||
{
|
||||
$cmdobj = Get-Command -CommandType Application -Name $cmd
|
||||
# Don't prepend $input with BOM
|
||||
$enc = [Console]::InputEncoding
|
||||
[Console]::InputEncoding = [System.Text.UTF8Encoding]::new()
|
||||
$ErrorActionPreference = "Continue" # Don't abort command on first stderr output
|
||||
$LASTEXITCODE = 42
|
||||
# Run command and convert ErrorRecords from stderr to plain Strings
|
||||
$($input | & $cmdobj @args 2>&1) | %{ $_.ToString() }
|
||||
$ErrorActionPreference = "Stop"
|
||||
[Console]::InputEncoding = $enc
|
||||
}
|
||||
|
||||
function gpg_verify($ascfile, $file, [ref]$ok)
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user