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

Read msiexec output as UTF-16. #397

Merged
merged 6 commits into from
Feb 28, 2022
Merged

Conversation

BillyONeal
Copy link
Member

Currently our PR and CI builds in the catalog repo are failing with the message:

Extracting 7zip...
msiexec failed while extracting 'D:\downloads\7z1900-x64.msi' with message:
T
##[error]vcpkg ci failed

Example: https://dev.azure.com/vcpkg/public/_build/results?buildId=68039&view=logs&j=7922e5c4-0103-5f8f-ad17-45ce9bb98e80&t=491b9f02-7edc-5990-cda1-511e95a3768e

The single character combined with msiexec being a Windows application suggests that it is trying to print UTF-16.

This change adds a new Encoding parameter to our cmd_execute_Xxx functions and passes in UTF-16 for msiexec.

Currently our PR and CI builds in the catalog repo are failing with the message:
````
Extracting 7zip...
msiexec failed while extracting 'D:\downloads\7z1900-x64.msi' with message:
T
##[error]vcpkg ci failed
````

Example: https://dev.azure.com/vcpkg/public/_build/results?buildId=68039&view=logs&j=7922e5c4-0103-5f8f-ad17-45ce9bb98e80&t=491b9f02-7edc-5990-cda1-511e95a3768e

The single character combined with msiexec being a Windows application suggests that it is trying to print UTF-16.

This change adds a new Encoding parameter to our cmd_execute_Xxx functions and passes in UTF-16 for msiexec.
@BillyONeal BillyONeal merged commit b91477a into microsoft:main Feb 28, 2022
@BillyONeal BillyONeal deleted the msiexec_output branch February 28, 2022 22:53
BillyONeal added a commit to BillyONeal/vcpkg-tool that referenced this pull request Mar 3, 2022
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

Successfully merging this pull request may close these issues.

2 participants