Merge pull request #676 from gormac/master

Fix 'Invalid code page' error when restoring code page at end of script for Windows
This commit is contained in:
罗泽轩 2017-11-03 16:38:09 +08:00 committed by GitHub
commit e7ca960f0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ SETLOCAL enabledelayedexpansion
for /F "tokens=*" %%F in ('chcp') do (
for %%A in (%%F) do (set _last=%%A)
)
SET CP=%_last:~0,-1%
SET CP=%_last:~0%
chcp 850 > NUL
:: echo %CP%