Skip to content

[CP] Fix Flutter doctor crash on Windows caused by bad UTF8 from vswhere.exe #104654

@loic-sharma

Description

@loic-sharma

issue_link

#102451

Commit Hash

928bb12, c29a7a2

Target

stable

Impacted Users

Windows developers using the latest version of Visual Studio

Impact Description

Flutter doctor crashes on Windows on the latest version of Visual Studio for certain locales. See: #102451

Workaround

Yes, workarounds include

  1. Downgrade Visual Studio to an unaffected version
  2. Switch your locale to English
  3. Patch your Visual Studio installation and replace vswhere.exe with a pre-release build: https://github.com/microsoft/vswhere/releases

Risk

low

Test Coverage

yes

Validation Steps

There are three commits to cherry pick:

All of these commits contain unit tests. Manual testing that can be ensuring flutter doctor does not crash on Windows with the latest Visual Studio installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cp: approvedApproved cherry-pick request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions