utf-8 for mail reply screen

This commit is contained in:
Michiel Broek 2007-02-26 14:48:22 +00:00
parent c85c4b901d
commit 6edc1d3da8
3 changed files with 12 additions and 3 deletions

View File

@ -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++)

View File

@ -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));

View File

@ -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)) {