]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Introduce sanitize_str().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 29 Feb 2016 21:10:05 +0000 (22:10 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 13 Mar 2016 17:11:32 +0000 (18:11 +0100)
Currently we sanitize the status item strings for para_gui in
align_str() of gui.c. This implementation is flawed because it does
not work for wide character strings.

This patch provides an abstraction in string.c which works in both
the UFT-8 and non-UTF-8 case.

The flawed implementation of this function in gui.c is removed and
the surrounding code is changed to call the new function instead.


No differences found