The following issue has been SUBMITTED. 
====================================================================== 
https://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:              2024-12-17 19:14 UTC
====================================================================== 
Summary:                    Return value for bind_textdomain_codeset() is
ambiguous
Description: 
The return value for bind_textdomain_codeset, added in

  https://www.austingroupbugs.net/view.php?id=1122

is ambiguous. The first time it is described:

  The bind_textdomain_codeset() function shall set or query the
  binding of a text domain to the output codeset used by the gettext
  family of functions for message strings retrieved from messages
  objects for the text domain specified by domainname... Otherwise, if
  codeset is a null pointer:

    * If domainname is not bound, the function shall return the
      implementation-defined default codeset used by the gettext
      family of functions.

And immediately thereafter:

  If codeset is a null pointer and domainname is a non-empty string,
  bind_textdomain_codeset() shall return the current codeset for the
  named domain, or a null pointer if a codeset has not yet been set.

In practice (GNU, musl, BSD, Solaris, ...?) it looks like the second
is followed.
Desired Action: 
Clarify the return value when the domainname is an unbound, nonempty string
and codeset is null.

====================================================================== 

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)
======================================================================


  • [1003.1(2024... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to