The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1740 ====================================================================== Reported By: ajosey Assigned To: ====================================================================== Project: Issue 8 drafts Issue ID: 1740 Category: Base Definitions and Headers Type: Error Severity: Objection Priority: normal Status: New Name: Andrew Josey Organization: User Reference: ISO/US-002 Section: 7.3.2.4 Page Number: na Line Number: na Final Accepted Text: ====================================================================== Date Submitted: 2023-05-31 17:12 UTC Last Modified: 2023-05-31 17:12 UTC ====================================================================== Summary: LC_COLLATE NUL (ISO/US-001) Description: In Volume 1, under 7.3.2.4, the definition of LC_COLLATE does not preclude the possibility that NUL is not at the beginning of the collation ordering. There are no C interfaces defined by POSIX that allows observation of such ordering of NUL; however, such ordering appears to be observable via the string comparison facility of the `test` utility in environments that both treat the utility as intrinsic and allow NUL characters in shell strings (perhaps via command substitution).
The C++ standard library specifies interfaces that would allow observation of such ordering of NUL; however, the lack of standardized C interfaces with such capability means that C++ standard library implementations suffer in terms of quality or portability. localedef is a POSIX facility that serves as a source for locales with exotic sorting of NUL, so it seems within the scope of POSIX to declare that sorting under locales where NUL does not sort as the least value is subject to limitations. Desired Action: Specify that placing NUL in the collation order in any position other than the first need not succeed in all contexts. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2023-05-31 17:12 ajosey New Issue 2023-05-31 17:12 ajosey File Added: ISO_IEC CD 9945 Collated Comments.doc 2023-05-31 17:12 ajosey Name => Andrew Josey 2023-05-31 17:12 ajosey User Reference => ISO/US-002 2023-05-31 17:12 ajosey Section => 7.3.2.4 2023-05-31 17:12 ajosey Page Number => na 2023-05-31 17:12 ajosey Line Number => na ======================================================================