-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
let_users_change_the_code_page #58008
Conversation
Function chcp() returns a string, chcp_code is an integer.
is always true Please change to
|
As negative test, I replaced chcp_code=65001 by chcp_code=437 and got the double quotes instead of ä |
You find my modified cmdmod.py here: |
@cmcmarrow looks good for me Could you please take over my changes, I would like to mass rollout a version we agree upon. |
@markuskramerlgitt I’ll take over your changes and add this feature and add it to the startup of salt. |
@cmcmarrow I patched my 3001 Minions with these files which are taken from this PR |
8e15617
to
769f9dc
Compare
This needs to be partially reverted. As for changing code page when salt starts, seen in a comment but not in any code. The admin should be responsible for properly setting his machine, and, if we already support changing the code page to a command we want to run, we're good, by we, I mean salt. We could check the current code page in order not to chain the I took a stab at trying to reuse this code, the right way, setting code page, running command, resetting codepage, but that meant 3 shells to run a single command, not good. Thoughts? Alternatives? Why did we actually needed to shell out to set the code page in the first place and opposed to chaining the commands? |
Actually, now that I think about this a bit more, even chaining the chcp command will change the code page for the following commands..... |
@s0undt3ch There was a lot of discussion about why we did this here: #57515 |
Thanks @twangboy, read it. |
For years Salt was setting code page 437
For year the codepage, was not set back to how it was.
A change to set it back to how it was should be optional, opt-in, on
request.
I probably sit on the largest minion basis for non 437 Windows boxes, and I
am worried.
I suggest we change the default code page to 437 as it was for years, and
make 65001 an opt-in
…On Sun, Sep 27, 2020 at 10:41 AM Pedro Algarvio ***@***.***> wrote:
Thanks @twangboy <https://github.com/twangboy>, read it.
I still think the merged PR, when setting the codepage, should set it back
to how it was.
The system should be properly configured in the first place. At most, our
windows bat scripts should do the codepage change at the start of each of
our CLIs, not salt.
Anyway, #58478 <#58478> seems to
correct this behavior, but I'll try testing with the data from the issue
you linked.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58008 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACAYREYLFOBNDHBHUVTDBFLSH33EHANCNFSM4PFFAR7A>
.
|
What does this PR do?
Lets cmd/powershell go to utf-8
#57901
#57515
Commits signed with GPG?
Yes