From 6edc1d3da8bfd9dd69ca68cf999892bac1532238 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 26 Feb 2007 14:48:22 +0000 Subject: [PATCH] utf-8 for mail reply screen --- mbsebbs/email.c | 5 ++++- mbsebbs/mail.c | 5 ++++- mbsebbs/oneline.c | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/mbsebbs/email.c b/mbsebbs/email.c index 37731b08..218ec6e8 100644 --- a/mbsebbs/email.c +++ b/mbsebbs/email.c @@ -697,7 +697,10 @@ void Reply_Email(int IsReply) Enter(1); colour(CFG.HiliteF, CFG.HiliteB); - sLine(); + if (utf8) + chartran_init((char *)"CP437", (char *)"UTF-8", 'B'); + PUTSTR(chartran(sLine_str())); + chartran_close(); Enter(1); for (i = 0; i < (TEXTBUFSIZE + 1); i++) diff --git a/mbsebbs/mail.c b/mbsebbs/mail.c index e77128e4..a472c3d2 100644 --- a/mbsebbs/mail.c +++ b/mbsebbs/mail.c @@ -1567,7 +1567,10 @@ void Reply_Msg(int IsReply) Enter(1); colour(CFG.HiliteF, CFG.HiliteB); - sLine(); + if (utf8) + chartran_init((char *)"CP437", (char *)"UTF-8", 'B'); + PUTSTR(chartran(sLine_str())); + chartran_close(); for (i = 0; i < (TEXTBUFSIZE + 1); i++) Message[i] = (char *) calloc(MAX_LINE_LENGTH +1, sizeof(char)); diff --git a/mbsebbs/oneline.c b/mbsebbs/oneline.c index 2975c3d9..e62f65b8 100644 --- a/mbsebbs/oneline.c +++ b/mbsebbs/oneline.c @@ -268,7 +268,10 @@ void Oneliner_List() } Enter(1); colour(GREEN, BLACK); - sLine(); + if (utf8) + chartran_init((char *)"CP437", (char *)"UTF-8", 'B'); + PUTSTR(chartran(sLine_str())); + chartran_close(); while (fread(&ol, olhdr.recsize, 1, pOneline) == 1) { if ((SYSOP == TRUE) || (exitinfo.Security.level >= CFG.sysop_access)) {