Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with invalid UTF-8 from gai_strerror #127583

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Commits on Jul 21, 2024

  1. 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`.
    Noratrieb committed Jul 21, 2024
    Configuration menu
    Copy the full SHA
    ae42efc View commit details
    Browse the repository at this point in the history