diff --git a/test/formatters/apheleia-ft.el b/test/formatters/apheleia-ft.el index 00ed504..feee83d 100755 --- a/test/formatters/apheleia-ft.el +++ b/test/formatters/apheleia-ft.el @@ -412,6 +412,8 @@ returned context." formatter display-fname))) (princ (format "[format-test] success: formatter %s (file %s)\n" - formatter display-fname)))))) + formatter display-fname)) + ;; https://stackoverflow.com/a/66558297 + (set-binary-mode 'stdout nil))))) (provide 'apheleia-ft) diff --git a/test/shared/run-func.bash b/test/shared/run-func.bash index d539409..db6c689 100755 --- a/test/shared/run-func.bash +++ b/test/shared/run-func.bash @@ -14,4 +14,4 @@ exec emacs --batch -L . "$@" \ --eval "(setq debug-on-error t)" \ --eval "(setq backtrace-line-length 0)" \ -f "${func}" \ - 2>&1 | sed -E 's/^(.{640}).+$/\1...[truncated]/' + 2>&1 | sed -uE 's/^(.{640}).+$/\1...[truncated]/'