From a230c06f3d60cbe80abc882979c2fe7bbe0fd72c Mon Sep 17 00:00:00 2001
From: liu shiwei
Date: Thu, 5 Oct 2023 22:50:24 +0800
Subject: [PATCH] capturefile wchar garbled
---
src/vt100.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vt100.c b/src/vt100.c
index 481464a..db22b04 100644
--- a/src/vt100.c
+++ b/src/vt100.c
@@ -1012,7 +1012,7 @@ void vt_out(int ch)
switch (esc_s) {
case 0: /* Normal character */
if (vt_docap == 1)
- fputc(P_CONVCAP[0] == 'Y' ? vt_inmap[c] : c, capfp);
+ fputwc(wc, capfp);
if (!using_iconv()) {
c = vt_inmap[c]; /* conversion 04.09.97 / jl */
#if TRANSLATE