(Fformat): Do all the work directly--don't use doprnt.
Calculate the right size the first time, so no need to retry. Count chars and bytes in the result. Convert single-byte strings to multibyte as needed.
Showing
Please register or sign in to comment