possible to modify by \fB\-\-table-*\fP options. Use this mode if not sure.
.PP
Input is taken from \fIfile\fR, or otherwise from standard input. Empty lines
-are ignored.
+are ignored and all invalid multibyte sequences are encoded by \\x<hex> convention.
.PP
.SH OPTIONS
The argument \fIcolumns\fP for \fB\-\-table-*\fP options is comma separated
#include "ttyutils.h"
#include "strv.h"
#include "optutils.h"
+#include "mbsalign.h"
#include "libsmartcols.h"
continue;
wcs = mbs_to_wcs(str);
- if (!wcs)
- err(EXIT_FAILURE, _("read failed"));
+ if (!wcs) {
+ /*
+ * Convert broken sequences to \x<hex> and continue.
+ */
+ size_t tmpsz = 0;
+ char *tmp = mbs_invalid_encode(str, &tmpsz);
+
+ if (!tmp)
+ err(EXIT_FAILURE, _("read failed"));
+ wcs = mbs_to_wcs(tmp);
+ free(tmp);
+ }
switch (ctl->mode) {
case COLUMN_MODE_TABLE:
fputs(_(" -s, --separator <string> possible table delimiters\n"), out);
fputs(_(" -x, --fillrows fill rows before columns\n"), out);
+
fputs(USAGE_SEPARATOR, out);
printf(USAGE_HELP_OPTIONS(34));
printf(USAGE_MAN_TAIL("column(1)"));