Repository navigation
Specify encoding for vswhere output - #59607
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
you might need to pull latest master? I'm not sure when you branched but it seems to have issues |
jonahwilliams
left a comment
There was a problem hiding this comment.
LGTM
(but not to CI)
|
Everything says "The current Flutter SDK version is 0.0.0-unknown". I'm not sure what's going on there. |
|
Did you branch in a weird way? on master the flutter version is determined by the first parent, so in this case subsequent pulls might not fix it. You could create a new PR off of upstream/master and merge this into that |
aee28e2 to
d0067ba
Compare
|
🤷 I'm not sure what I did differently here (I made the branch a while ago), but rebase + force push seems to be making things happier. |
On Windows, Process.run assumes the output uses the system codepage by default. This allows specifying it in our wrapper, and sets the encoding for vswhere to UTF-8 since we're passing a flag that forces it to use UTF-8 output. Fixes flutter#53515
On Windows, Process.run assumes the output uses the system codepage by default. This allows specifying it in our wrapper, and sets the encoding for vswhere to UTF-8 since we're passing a flag that forces it to use UTF-8 output. Fixes flutter#53515
Description
On Windows, Process.run assumes the output uses the system codepage by default. This allows specifying it in our wrapper, and sets the encoding for
vswhereto UTF-8 since we're passing a flag that forces it to use UTF-8 output.Related Issues
Fixes #53515
Tests
I added the following tests: Ensure vswhere is called with the correct output encoding.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.