Commit 5a6f6b7e authored by Vincent Stehlé's avatar Vincent Stehlé
Browse files use iconv

Currently we `cat' all the discrete .ekl log files into a big, single file
directly as binaries. This adds UTF-16 two bytes BOM everywhere in the
middle of the resulting cat_summary.ekl.

Fix that with iconv: we convert all the log files to UTF-8 on the fly and
back to UTF-16 while concatenating.

While at it, handle an optional command line argument to specify the
folder to search for logs.

Signed-off-by: Vincent Stehlé's avatarVincent Stehlé <>
parent 6572f107
set -eu
find log/ -name '*.ekl' -exec cat {} \; > cat_summary.ekl
find "$d" -name '*.ekl' -exec iconv -f UTF-16 -t UTF-8 {} \; |\
iconv -f UTF-8 -t UTF-16 > cat_summary.ekl
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment