mirror of
https://github.com/astral-sh/uv
synced 2026-01-28 17:00:17 -05:00
## Summary - This was inherited fromd719988323/src/metadata.rs (LL78C2-L91C26)- ...which introduced this code here:9cd1d43f7c- ...with the originating issue here: https://github.com/PyO3/maturin/issues/612 - ...and the upstream issue here: https://github.com/staktrace/mailparse/issues/50 It seems like the goal was to support Unicode in certain header fields, but I don't think this is necessary for us. We only use `get_first_value` for `Requires-Python`, which has to be ASCII, doesn't it? In my testing, it seems like the `charset` hack can also be removed. The tests I copied over actually work without it, which makes me a bit skeptical. The main benefit here is that we get to a remove a _big_ dependency stack, including Chumsky and Stacker and psm which have limited cross-platform support.