You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, if any of the pkg-config packages on the system had invalid
Unicode in their description fields (like the Intel vpl package has at
the time of writing, 2024-01-11, see haskell#9608), cabal would crash because
it tried to interpret the entire `pkg-config --list-all` output as
Unicode.
This change, as suggested by gbaz in
haskell#9608 (comment)
switches to using a lazy ByteString for reading in the output, splitting
on the first space in byte land, and then parsing only the package
_name_ to a String.
For further future-proofing, package names that don't parse as valid
Unicode don't crash Cabal, but are instead ignored.
0 commit comments