Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows CLI auto run causes error: wrong number of arguments, should be from 1 to 2 #734

Open
eidng8 opened this issue Apr 9, 2020 · 0 comments

Comments

@eidng8
Copy link

eidng8 commented Apr 9, 2020

Windows command prompt and power shell provide a feature to run something at startup. Say, add chcp 65001 to registry

[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun]

and it'll change to UTF-8 whenever a command prompt or power shell is launched. However, this causes the error to occur (say, with travis setup releases):

error: wrong number of arguments, should be from 1 to 2
usage: git config [<options>]

... snipped...

bad URI(is not URI?): "Active code page: 65001\nActive"
for a full error report, run travis report

The "Active code page: 65001" part is from the chcp command. And travis runs fine if the autorun is not turned on.

I'm guessing that if anything were written to stdout (or even stderr?) would cause error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant