rust/library/std
Nilstrieb ae42efc522 Deal with invalid UTF-8 from gai_strerror
When the system is using a non-UTF-8 locale, the value will indeed not
be UTF-8. That sucks for everyone involved, but is no reason for panic.
We can "handle" this gracefully by just using from lossy, replacing the
invalid UTF-8 with the ? and keeping the accidentally valid UTF-8.
Good luck when debugging, but at least it's not a crash.

We already do this for `strerror_r`.
2024-07-21 13:22:03 +02:00
..
benches also test parts of std 2024-04-07 10:05:57 +02:00
src Deal with invalid UTF-8 from gai_strerror 2024-07-21 13:22:03 +02:00
tests Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
build.rs Add build.rs config for reliable f16 and f128 2024-06-25 01:32:36 -04:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00