| Summary: | setlocale should fail if the required gconv module is missing | ||
|---|---|---|---|
| Product: | glibc | Reporter: | Florian Weimer <fweimer> |
| Component: | locale | Assignee: | Siddhesh Poyarekar <siddhesh> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | carlos, fweimer, siddhesh, victor.stinner |
| Priority: | P2 | Flags: | fweimer:
security-
|
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| See Also: | https://bugzilla.redhat.com/show_bug.cgi?id=1973663 | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
|
Description
Florian Weimer
2021-06-18 14:29:49 UTC
I agree setlocale should fail in this case. Calling locale that way does not actually call setlocale(). I've got a test with a patch which does; sending soon. It may be prudent to turn ISO-8859-1 and ISO-8859-15 into internal converts, too, so that we don't encounter additional overhead due to early converter loading for these (somewhat common) character sets. |