#1863: Parrot IO and encodings
-----------------------+----------------------------------------------------
Reporter: nwellnhof | Owner: nwellnhof
Type: feature | Status: assigned
Priority: normal | Milestone: 3.0
Component: core | Version: 2.10.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-----------------------+----------------------------------------------------
Comment(by nwellnhof):
nwellnhof/unicode_io is merged now.
My next plan is to make FileHandle.read accept character sizes instead of
byte sizes. Then we should look for a way to use the encoding code for
Sockets.
We have to buffer socket recvs for variable length encodings, but we
shouldn't buffer sends in most cases. So we should support different
setting for input and output buffering. Socket recvs also shouldn't treat
partial characters at the end of the buffer as an error, if no more bytes
can be read. All these things apply to pipes as well.
I wouldn't share any of the read or readline code between FileHandles and
StringHandles. Full encoding support for StringHandles should be quite
easy to implement on its own.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1863#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets