While the compiler automatically detected by cc always is a valid str, it is possible for user to override them using environment variable CC, CXX and AR, which could contain non utf-8 characters.
Before this PR is applied, cc uses to_string_lossy() to convert it to a valid str which might cause the creation of process to fail.
While the compiler automatically detected by cc always is a valid
str
, it is possible for user to override them using environment variableCC
,CXX
andAR
, which could contain non utf-8 characters.Before this PR is applied, cc uses
to_string_lossy()
to convert it to a validstr
which might cause the creation of process to fail.