From c769d661f135ad1002da63fd226dfee4996d940d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 16 Mar 2020 21:34:27 +0100 Subject: [PATCH] emoji -> alttext in logfiles --- client/ui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/ui.c b/client/ui.c index d470647b7..177e495aa 100644 --- a/client/ui.c +++ b/client/ui.c @@ -331,10 +331,11 @@ static void fPrintAndLog(FILE *stream, const char *fmt, ...) { #endif if ((g_printAndLog & PRINTANDLOG_LOG) && logging && logfile) { + memcpy_filter_emoji(buffer3, buffer2, sizeof(buffer2), ALTTEXT); if (filter_ansi) { // already done - fprintf(logfile, "%s\n", buffer2); + fprintf(logfile, "%s\n", buffer3); } else { - memcpy_filter_ansi(buffer, buffer2, sizeof(buffer2), true); + memcpy_filter_ansi(buffer, buffer3, sizeof(buffer3), true); fprintf(logfile, "%s\n", buffer); } fflush(logfile);