Re: UTF-8 and new ports

2008-02-14 Thread Stephen Compall
Mike Gran <[EMAIL PROTECTED]> writes: > It seems that port types are inherently 8-bit, right? > So to make this work, the ports will have to store and > transmit characters as UTF-8 encoded data. The > 'fill_input' function will have to convert UTF-32 to > UTF-8 and then cache them, passing them

UTF-8 and new ports

2008-02-14 Thread Mike Gran
Hi- Suppose I'm creating a new Guile port type that is going to use NCurses primitives for input (scm_getc) and output (display). NCurses can both receive input and display output of wide characters, but, these functions operate on 32-bit wide unicode codepoints, aka UTF32. It seems that port ty