locale::global

static locale global(const locale& x);

The static member function stores a copy of x as the global locale. It also calls setlocale( LC_ALL, x.name. c_str()), to establish a matching locale within the Standard C library. The function then returns the previous global locale. At program startup, the global locale represents the C locale.