Public Comment Number PC-UK0062 ISO/IEC CD 9899 (SC22N2620) Public Comment =========================================== Date: 1998-01-19 Author: Clive D.W. Feather Author Affiliation: Self Postal Address: Demon Internet Limited 322 Regents Park Road London N3 2QQ United Kingdom E-mail Address: Telephone Number: +44 181 371 1138 Fax Number: +44 181 371 1037 Number of individual comments: 1 Comment 1. Category: Feature that should be included Committee Draft subsection: 7.13.3, 7.13.5.4 Title: Provide a way to make the standard streams binary Detailed description: 7.13.3p7 states that the three standard streams are text. This makes it impossible to write programs like "cat" on systems where text and binary streams are not the same. There are a number of ways to provide this facility. Here is my prefered one: add a new paragraph to 7.13.5.4 before paragraph 3: If /filename/ is a null pointer, the /freopen/ function attempts to change the mode of the stream to that specified by /mode/, as if the name of the file currently associated with the stream had been used. It is implementation-defined which changes of mode (if any) are permitted and under what circumstances.