ncurses/ncurses-5.4-wide.dif

25 lines
849 B
Plaintext

--- ncurses/curses.priv.h
+++ ncurses/curses.priv.h 2005-07-22 12:52:22.000000000 +0200
@@ -693,8 +693,11 @@
(ch).chars[PUTC_i], &PUT_st); \
if (PUTC_ch == L'\0') \
--PUTC_n; \
- if (PUTC_n <= 0) \
+ if (PUTC_n <= 0) { \
+ if (PUTC_ch && is8bits(PUTC_ch)) \
+ putc(PUTC_ch,b); \
break; \
+ } \
fwrite(PUTC_buf, (unsigned) PUTC_n, 1, b); \
++PUTC_i; \
} while (PUTC_ch != L'\0'); \
@@ -741,7 +744,7 @@
#define ARG_CH_T NCURSES_CH_T
#define CARG_CH_T NCURSES_CH_T
#define PUTC_DATA int data = 0
-#define PUTC(a,b) do { data = CharOf(ch); putc(data,b); } while (0)
+#define PUTC(ch,b) do { data = CharOf(ch); putc(data,b); } while (0)
#define BLANK (' '|A_NORMAL)
#define ZEROS ('\0'|A_NORMAL)