A NOTE has been added to this issue. 
====================================================================== 
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:              2025-01-16 15:24 UTC
====================================================================== 
Summary:                    Return value for bind_textdomain_codeset() is
ambiguous
====================================================================== 

---------------------------------------------------------------------- 
 (0007045) geoffclare (manager) - 2025-01-16 15:24
 https://austingroupbugs.net/view.php?id=1894#c7045 
---------------------------------------------------------------------- 
Suggested changes:

On page 667 line 23399 section bindtextdomain(), change:
<blockquote>If <i>domainname</i> is not bound, the function shall return
the implementation-defined default directory pathname used by the
<i>gettext</i> family of functions.</blockquote>
to:
<blockquote>If <i>domainname</i> is not bound, the function shall return a
null pointer without changing <i>errno</i>.</blockquote>

On page 557 line 23402 section bindtextdomain(), delete the redundant
text:
<blockquote>If <i>codeset</i> is a null pointer and <i>domainname</i> is a
non-empty string, <i>bind_textdomain_codeset</i>() shall return the current
codeset for the named domain, or a null pointer if a codeset has not yet
been set.</blockquote>

On page 668 line 23425 section bindtextdomain(), change:
<blockquote>A null pointer without changing <i>errno</i> if no codeset has
yet been bound for that text domain</blockquote>
to:
<blockquote>A null pointer without changing <i>errno</i> if <i>codeset</i>
is a null pointer and no codeset has yet been bound for that text
domain</blockquote> 

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                          
2025-01-16 15:24 geoffclare     Note Added: 0007045                          
======================================================================


  • [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
    • [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