In this case, each character sent to the stream buffer is written using the C function putchar().
However, before the character is written, it is turned into an uppercase character using toupper()
(see Section 16.4.4, page 895). The function getloc() is used to get the locale object associated
with the stream buffer (see also Section 15.8, page 790)