Title
Locale::global lacks guarantee
Status
tc1
Section
[locale.statics]
Submitter
Matt Austern

Created on 1997-12-24.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

Add a sentence at the end of [locale.statics], paragraph 2: 

No library function other than locale::global() shall affect the value returned by locale().

Date: 1997-12-24.00:00:00

It appears there's an important guarantee missing from clause 22. We're told that invoking locale::global(L) sets the C locale if L has a name. However, we're not told whether or not invoking setlocale(s) sets the global C++ locale.

The intent, I think, is that it should not, but I can't find any such words anywhere.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg20
1997-12-24 00:00:00admincreate