[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[openssl-gost] [gost-engine/engine] b56b7e: Always cNORM before "\n"
Branch: refs/heads/master
Home: https://github.com/gost-engine/engine
Commit: b56b7ee05276b92c282efa412ae94163b88ec350
https://github.com/gost-engine/engine/commit/b56b7ee05276b92c282efa412ae94163b88ec350
Author: Richard Levitte <richard@levitte.org>
Date: 2021-02-22 (Mon, 22 Feb 2021)
Changed paths:
M test_ciphers.c
M test_context.c
M test_curves.c
M test_derive.c
M test_digest.c
M test_params.c
M test_sign.c
Log Message:
-----------
Always cNORM before "\n"
Using cNORM after "\n" may or may not work, probably because of the
line buffered nature of standard output.
If an error is displayed immediately after a printf that has cNORM
after "\n", the error output sometimes "overrides" the cNORM, and you
may end up with a surprisingly colorful error message, not to mention
that this may also affect your prompt in the same manner.
The lesson is to always output cNORM before the ending "\n".