]> git.tuebingen.mpg.de Git - paraslash.git/commit
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)
commit8daabd03bb649ae04d6b2dd9e46640ca1e514d3d
tree3e230a9cbbc3701f0e42aa4d4405f1e47b0ea4bf
parent5971e3303cf800603622c2475e07fdccc33e4915
Introduce sanitize_str().

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.
gui.c
string.c
string.h