]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: support \x?? for data by samples/fromfile.c
authorKarel Zak <kzak@redhat.com>
Mon, 23 Oct 2023 12:35:21 +0000 (14:35 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Oct 2023 19:54:01 +0000 (21:54 +0200)
commit301d02816f070ad4c66f7b8fb789d5d5e121ab9b
treecfa1df2863aaa3d85ec160e1b934b15c35127a65
parentfa4e6939838fbdf2f054451fccd85b93850d0b32
libsmartcols: support \x?? for data by samples/fromfile.c

The test (sample) binary already supports \n in strings to covert it
to the real line-break. It seem more generic to use \x?? (hex) to
support arbitrary byte in the column data.

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/samples/fromfile.c
tests/ts/libsmartcols/files/data-string-nl