locale imbue(const locale& loc);
If rdbuf is not a null pointer, the member function calls rdbuf()->pubimbue(loc). In any case, it returns ios_base::imbue(loc).
rdbuf
rdbuf()->
pubimbue
(loc)
ios_base::imbue