View Issue Details

IDProjectCategoryView StatusLast Update
00014531003.1(2016/18)/Issue7+TC2Shell and Utilitiespublic2024-06-11 09:08
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionlex
Page Number2885
Line Number95160, 95165
Interp Status---
Final Accepted Text
Summary0001453: lex LC_COLLATE/LC_CTYPE incorrect wording about unspecified behaviour
DescriptionThe descriptions of LC_COLLATE and LC_CTYPE in the lex ENVIRONMENT VARIABLES section say:
If this variable is not set to the POSIX locale, the results are unspecified.

Taken at face value, this means that applications have to set those variables exactly as stated in order to avoid unspecified behaviour, e.g.:
LC_COLLATE=POSIX LC_CTYPE=POSIX lex ...
This is obviously not what was intended, which is that if the combination of the LANG, LC_COLLATE, LC_CTYPE, and LC_ALL variables results in the locale in effect for the LC_CTYPE or LC_COLLATE category not being the POSIX locale, the behaviour is unspecified.
Desired ActionOn page 2885 line 95160,95165 section lex, delete:
If this variable is not set to the POSIX locale, the results are unspecified.

On page 2885 line 95170 section lex, add a paragraph after the list:
If the values (if any) of the LANG, LC_COLLATE, LC_CTYPE, and LC_ALL variables result in the locale in effect for the LC_CTYPE or LC_COLLATE category not being the POSIX locale, the behavior is unspecified.
and move the following text from LANG on page 2884 line 95154 to become a second sentence in the added paragraph:
(See [xref to XBD 8.2] for the precedence of internationalization variables used to determine the values of locale categories.)

Tagstc3-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-02-16 10:10 geoffclare New Issue
2021-02-16 10:10 geoffclare Name => Geoff Clare
2021-02-16 10:10 geoffclare Organization => The Open Group
2021-02-16 10:10 geoffclare Section => lex
2021-02-16 10:10 geoffclare Page Number => 2885
2021-02-16 10:10 geoffclare Line Number => 95160, 95165
2021-02-16 10:10 geoffclare Interp Status => ---
2021-02-16 10:10 geoffclare Description Updated
2021-11-11 16:08 Don Cragun Status New => Resolved
2021-11-11 16:08 Don Cragun Resolution Open => Accepted
2021-11-11 16:09 Don Cragun Tag Attached: tc3-2008
2021-11-26 15:05 geoffclare Status Resolved => Applied
2024-06-11 09:08 agadmin Status Applied => Closed