column: don't ignore mbs_to_wcs() errors
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
4219aa3756
commit
3cc2ade826
|
@ -444,6 +444,8 @@ static int input(struct column_control *ctl, FILE *fp)
|
|||
maxents * sizeof(wchar_t *));
|
||||
}
|
||||
ctl->ents[ctl->nents] = mbs_to_wcs(str);
|
||||
if (!ctl->ents[ctl->nents])
|
||||
err(EXIT_FAILURE, _("read failed"));
|
||||
len = width(ctl->ents[ctl->nents]);
|
||||
if (ctl->maxlength < len)
|
||||
ctl->maxlength = len;
|
||||
|
|
Loading…
Reference in New Issue