Title
Name of locale composed using std::locale::none
Status
resolved
Section
[locale.cons]
Submitter
Hubert Tong

Created on 2022-02-14.00:00:00 last changed 21 months ago

Messages

Date: 2023-03-22.00:00:00

[ 2023-03-22 LWG 2295 was approved in Issaquah. Status changed: New → Resolved. ]

Date: 2022-11-15.00:00:00

[ 2022-11-01; Jonathan comments ]

The proposed resolution of 2295 would resolve this too.

Date: 2022-03-15.00:00:00

[ 2022-03-04; Reflector poll ]

Set priority to 3 after reflector poll.

Date: 2022-02-14.17:23:11

For

locale(const locale& other, const locale& one, category cats);

the Remarks say:

The resulting locale has a name if and only if the first two arguments have names.

The case where cats is locale::none seems very similar to the issue that LWG 2295 reports with the case where the provided facet pointer is nullptr. That is, if no composition is actually occurring, then using the name of other seems to be reasonable.

It would help consistency if both cases are treated the same way.

Note: The locale::all case should not imply using the name of one. locale::all does not necessarily cover all of the C locale categories on a platform.

History
Date User Action Args
2023-03-22 13:19:33adminsetmessages: + msg13464
2023-03-22 13:19:33adminsetstatus: new -> resolved
2022-11-01 15:05:20adminsetmessages: + msg12905
2022-03-04 14:33:52adminsetmessages: + msg12399
2022-02-14 00:00:00admincreate