# Fix Python interpreter discovery crashes on non-UTF-8 output \(\#64040\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/3405c42f6756fcf7f3a66ccb12090a59c9dff30a)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 3405c42f6756fcf7f3a66ccb12090a59c9dff30a

Requested commit: 3405c42f6756fcf7f3a66ccb12090a59c9dff30a

Commit: 3405c42f6756fcf7f3a66ccb12090a59c9dff30a

Tree: 2459b6f66b5bf857986dd4b7f12f8e707482739d

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix Python interpreter discovery crashes on non-UTF-8 output (#64040)

## Summary

Pin all PET dependencies to [our fork at
5aad716](https://github.com/zed-industries/python-environment-tools/commit/5aad7164bfc2a58977b103c8ef8fdd7302ed2e9f),
fixing ZED-BGV: non-UTF-8 interpreter stdout could panic discovery.

Refs https://github.com/microsoft/python-environment-tools/issues/525.

The bump also includes upstream’s Windows Conda alias-deduplication fix
(#519 in PET) and CI-only changes. No unrelated lockfile changes.

## Validation

- `corgi check -p languages` passed on macOS.
- PET’s regression test failed with the original code and passed with
the fix; all 51 `pet-python-utils` tests passed in the PET checkout.
- Verified all seven direct dependencies and 27 lockfile entries point
to the fork.
- `git diff --check` passed.

Release Notes:

- Fixed a crash during Python interpreter discovery when an executable
emits non-UTF-8 output.
```

## Parents

- [72c53bf0aae2e619f146d96415f79caf77310455](https://git.cafe/gitcafe/zed/commit/72c53bf0aae2e619f146d96415f79caf77310455?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/3405c42f6756fcf7f3a66ccb12090a59c9dff30a?format=markdown)
