diff options
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1314,6 +1314,11 @@ static val format_mode(const struct stdio_mode m) if (m.binary) *ptr++ = 'b'; +#ifdef __CYGWIN__ + if (!m.binary && (!opt_compat || opt_compat > 143)) + *ptr++ = 't'; +#endif + *ptr = 0; return string(buf); } |