Both pubimbue() and getloc() are used for internationalization (see Section 15.8, page 790):
pubimbue() installs a new locale object in the stream buffer, returning the previously installed
locale object; getloc() returns the currently installed locale object.