]> git.tuebingen.mpg.de Git - paraslash.git/commit
UTF-8 support for para_gui.
authorAndre Noll <maan@systemlinux.org>
Sun, 3 Jun 2012 12:08:55 +0000 (14:08 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 23 Dec 2012 14:03:10 +0000 (15:03 +0100)
commit36f38afb959f19490a38ba50949ba62e7c85c3af
treeaecff20dbb49c7a3e9d1d43b5fd554884b60ad98
parenta998048a7a99a5d8327896ecee3cecc4ae7e8368
UTF-8 support for para_gui.

This adds two public helper functions to string.c which operate on
multibyte strings if the character encoding used in the selected
locale is UTF-8.

The first new helper, strwidth(), computes the width of the UTF-8
string while skip_cells() determines the number of bytes the given
multibyte string must be advanced in order to skip the given number
of cells.

para_gui is changed to use the new functions to properly display
UTF-8 encoded data in its top and bottom windows.
gui.c
string.c
string.h