A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1894 ====================================================================== Reported By: mjo Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1894 Category: Base Definitions and Headers Type: Clarification Requested Severity: Editorial Priority: normal Status: New Name: Michael Orlitzky Organization: User Reference: Section: bind_textdomain_codeset Page Number: (page or range of pages) Line Number: (Line or range of lines) Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2024-12-17 19:14 UTC Last Modified: 2025-01-09 17:07 UTC ====================================================================== Summary: Return value for bind_textdomain_codeset() is ambiguous ======================================================================
---------------------------------------------------------------------- (0007041) bhaible (reporter) - 2025-01-09 17:07 https://www.austingroupbugs.net/view.php?id=1894#c7041 ---------------------------------------------------------------------- The value documented in the bulleted list is "the implementation-defined default codeset used by the gettext family of functions". The value documented after the bulleted list is "a null pointer". Which is it in practice? I ran the attached test program foo.c on all implementations (glibc, GNU libintl, musl libc, NetBSD 10, Solaris 11), and the return value is a null pointer in all cases. So, it appears that the wording "the implementation-defined default codeset used by the gettext family of functions" was added for generality, in order not to disagree with any possible implementation. But since all implementations return a null pointer, this generality is not needed. My suggestion therefore: Replace "the implementation-defined default codeset used by the gettext family of functions" with "a null pointer". Issue History Date Modified Username Field Change ====================================================================== 2024-12-17 19:14 mjo New Issue 2024-12-17 19:14 mjo Name => Michael Orlitzky 2024-12-17 19:14 mjo Section => bind_textdomain_codeset 2024-12-17 19:14 mjo Page Number => (page or range of pages) 2024-12-17 19:14 mjo Line Number => (Line or range of lines) 2024-12-19 10:43 geoffclare Note Added: 0007016 2024-12-19 10:43 geoffclare Note Edited: 0007016 2025-01-09 17:00 bhaible File Added: foo.c 2025-01-09 17:07 bhaible Note Added: 0007041 ======================================================================
