It calls mbsrtowcs with an incorrect parameter type: int main () { wchar_t *out;char *in;char *res; res=setlocale(LC_CTYPE,"");res=in; mbsrtowcs(out, &res, 2, NULL); wcswidth(out,2); ; return 0; } The type of res should be const char *, not char *. Reproducible: Always
Filing this here because upstream does not seem to have a public bug tracker.
Created attachment 2002135 [details] units-configure-c99.patch
Also mailed the patch to the upstream author.
Thank you Florian, for handling this Bug.