Replace tabs by spaces in the input line.
Correctly handle multi-bytes characters.
This assumes that line does not contain any line breaks (if it does, the result is undefined).
Write a single line to an output stream, expanding tabs to space if necessary.
This assumes that line does not contain any line breaks
(if it does and tabs are to be expanded to spaces, the result is undefined).