> On 23 Jul 2018, at 12:07, Sven Van Caekenberghe <s...@stfx.eu> wrote: > > Stdio stdout and friends just return a binary stream, hence they need > wrapping for encoding. > > Maybe > > Stdio stdoutAsText > > might be an idea, but this is so uncommon that I am not sure this is a good > idea. Given all remarks and comments (thanks BTW), I now think that - textual stdio streams are the more common case - binary stdio streams are the primitive ones that are seldom used - another encoding than UTF-8 seems uncommon - these are streams that exist and need no real opening/closing So, Stdio stdout should return return a character write stream with UTF-8 encoding while Stdio binaryStdout should be the lower level binary one. This would be more in line with the other streams. A non-UTF-8 encoding can be used as per Pavel's example.
- [Pharo-users] Pharo 7 file streams guideline Pavel Krivanek
- Re: [Pharo-users] Pharo 7 file streams guidelin... Ben Coman
- Re: [Pharo-users] Pharo 7 file streams guid... Sven Van Caekenberghe
- Re: [Pharo-users] Pharo 7 file streams ... Alistair Grant
- Re: [Pharo-users] Pharo 7 file stre... Denis Kudriashov
- Re: [Pharo-users] Pharo 7 file... Ben Coman
- Re: [Pharo-users] Pharo 7 file... David T. Lewis
- Re: [Pharo-users] Pharo 7 file streams ... Sven Van Caekenberghe
- Re: [Pharo-users] Pharo 7 file stre... Alistair Grant
- Re: [Pharo-users] Pharo 7 file... Damien Pollet
- Re: [Pharo-users] Pharo 7 ... Sven Van Caekenberghe
- Re: [Pharo-users] Phar... Damien Pollet
- Re: [Pharo-users] Phar... David T. Lewis
- Re: [Pharo-users] Pharo 7 file stre... Damien Pollet
- Re: [Pharo-users] Pharo 7 file... Damien Pollet
- Re: [Pharo-users] Pharo 7 ... Guillermo Polito
- Re: [Pharo-users] Phar... Guillermo Polito
- Re: [Pharo-users] Pharo 7 file... Guillermo Polito