A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=1741 ====================================================================== Reported By: ajosey Assigned To: ====================================================================== Project: Issue 8 drafts Issue ID: 1741 Category: System Interfaces Type: Error Severity: Objection Priority: normal Status: New Name: Andrew Josey Organization: User Reference: ISO/US-003 Section: 3 Page Number: 1137 Line Number: 38955-38956 Final Accepted Text: ====================================================================== Date Submitted: 2023-05-31 17:13 UTC Last Modified: 2023-07-20 16:19 UTC ====================================================================== Summary: getlocalename_l (ISO/US-003) ======================================================================
---------------------------------------------------------------------- (0006395) geoffclare (manager) - 2023-07-20 16:19 https://austingroupbugs.net/view.php?id=1741#c6395 ---------------------------------------------------------------------- Change:<blockquote>The <i>getlocalename_l</i>() function shall return the locale name for the given locale category of the locale object <i>locobj</i>, or of the global locale if <i>locobj</i> is the special locale object LC_GLOBAL_LOCALE. The <i>category</i> argument specifies the locale category to be queried. If the value is LC_ALL or is not a supported locale category value (see [xref to setlocale()]), <i>getlocalename_l</i>() shall fail.</blockquote>to:<blockquote>If <i>category</i> is not LC_ALL, the <i>getlocalename_l</i>() function shall return the locale name for the given locale category of the locale object <i>locobj</i>, or of the global locale if <i>locobj</i> is the special locale object LC_GLOBAL_LOCALE. If <i>category</i> is LC_ALL, the <i>getlocalename_l</i>() function shall return a string that encodes the locale settings for all locale categories of the locale object <i>locobj</i>, or of the global locale if <i>locobj</i> is the special locale object LC_GLOBAL_LOCALE, in the same form as is returned by <i>setlocale</i>(). The string returned is such that a subsequent call to <i>setlocale</i>(), from the same process, with a pointer to that string as <i>locale</i> and the LC_ALL <i>category</i> shall set the global locale to the same locale for each category as was present in the queried object. If the value of the <i>category</i> argument is neither LC_ALL nor a supported locale category value (see [xref to setlocale()]), <i>getlocalename_l</i>() shall fail.</blockquote> Change APPLICATION USAGE from "None" to:<blockquote>In addition to the caveats regarding validity of the returned string pointer in RETURN VALUE, the content of the string returned when <i>category</i> is LC_ALL is only required to be valid for the life of the process, so is not intended for storage or sharing between processes. As the internal format of the string is implementation-specific, there is nothing preventing a subsequent run of an application from being presented a different format, for example if the implementation is updated.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2023-05-31 17:13 ajosey New Issue 2023-05-31 17:13 ajosey File Added: ISO_IEC CD 9945 Collated Comments.doc 2023-05-31 17:13 ajosey Name => Andrew Josey 2023-05-31 17:13 ajosey User Reference => ISO/US-003 2023-05-31 17:13 ajosey Section => 3 2023-05-31 17:13 ajosey Page Number => na 2023-05-31 17:13 ajosey Line Number => na 2023-07-17 23:17 Don Cragun Page Number na => 1137 2023-07-17 23:17 Don Cragun Line Number na => 38955-38956 2023-07-18 16:18 geoffclare Note Added: 0006393 2023-07-18 16:22 geoffclare Note Edited: 0006393 2023-07-20 16:19 geoffclare Note Added: 0006395 ======================================================================
