#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):

 Maybe it's better that FileHandle.read stays like it is and accepts byte
 counts, but throws if it encounters a multi-byte encoded buffer that
 doesn't fit in the requested size. Reading characters can be done with a
 new method FileHandle.read_chars.

 readline() for sockets and pipes with multi-byte characters is even more
 complicated than I thought. It can happen that we have a partial multi-
 byte char at the of an input buffer and that the following read/recv
 doesn't return enough bytes to complete the char.

 Also see IOTasklist in the Wiki.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1863#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to