Merge pull request #691 from koppor/patch-1

Remove trailing dot of German Windows
This commit is contained in:
罗泽轩 2018-02-05 11:25:53 +08:00 committed by GitHub
commit 8216e6bbbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,9 @@ for /F "tokens=*" %%F in ('chcp') do (
for %%A in (%%F) do (set _last=%%A)
)
SET CP=%_last:~0%
if "!CP:~-1!"=="." (
SET CP=!CP:~0,-1!
)
chcp 850 > NUL
:: echo %CP%