mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
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:
commit
e7ca960f0c
|
|
@ -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%
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue