summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-20 19:18:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-20 19:18:29 +0000
commitf6717b832e0d11c83cfc578e4fc369ae21b9ab03 (patch)
treeb32409b71f8b896197633d0ef16facfc73c1c898 /lib/libc
parentd89b749326b0670ac53e05f47aa31d57775fcafa (diff)
Try to reduce the UTF-8 mess.
Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions