From bce8145f4cebe13ffa3c0595d6292ef8b781776c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 1 Mar 2007 15:17:16 +0000 Subject: [PATCH] Timestats now UTF-8 aware --- ChangeLog | 5 +++-- mbsebbs/Makefile | 2 +- mbsebbs/timestats.c | 8 ++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a44bdb8c..39670aca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,8 +32,9 @@ v0.91.5 18-Feb-2007 Display ansi file converts to UTF-8 if the user has UTF-8. Email and FTN mail reading now translates to the users characterset using glibc iconv. - Changed menus lastcallers, whoson, userlist, pinfo, fsedit to - output UTF-8 code if the user has set that terminal setting. + Changed menus lastcallers, whoson, userlist, pinfo, fsedit, + timestats to output UTF-8 code if the user has set that terminal + setting. mbfile: The index command produces UTF-8 webpages. diff --git a/mbsebbs/Makefile b/mbsebbs/Makefile index ee179b2c..a537575f 100644 --- a/mbsebbs/Makefile +++ b/mbsebbs/Makefile @@ -128,7 +128,7 @@ whoson.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h input.h lang door.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h language.h input.h timeout.h exitinfo.h whoson.h door.h term.h ttyio.h openport.h dispfile.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h ../lib/msgtext.h ../lib/msg.h funcs.h language.h oneline.h misc.h timeout.h timecheck.h exitinfo.h mail.h email.h input.h dispfile.h filesub.h term.h ttyio.h userlist.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h userlist.h language.h input.h timeout.h term.h ttyio.h -timestats.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h timestats.h funcs.h language.h input.h exitinfo.h term.h +timestats.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h timestats.h funcs.h language.h input.h exitinfo.h term.h ttyio.h logentry.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ../lib/users.h logentry.h ymsend.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ttyio.h zmmisc.h transfer.h openport.h timeout.h term.h ymsend.h ymrecv.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ttyio.h timeout.h transfer.h zmmisc.h zmrecv.h ymsend.h ymrecv.h diff --git a/mbsebbs/timestats.c b/mbsebbs/timestats.c index c9638322..045ce7df 100644 --- a/mbsebbs/timestats.c +++ b/mbsebbs/timestats.c @@ -4,7 +4,7 @@ * Purpose ...............: Time Statistics * ***************************************************************************** - * Copyright (C) 1997-2005 + * Copyright (C) 1997-2007 * * Michiel Broek FIDO: 2:280/2802 * Beekmansbos 10 @@ -38,6 +38,7 @@ #include "input.h" #include "exitinfo.h" #include "term.h" +#include "ttyio.h" void TimeStats() @@ -61,7 +62,10 @@ void TimeStats() poutCR(WHITE, BLACK, msg); colour(LIGHTRED, BLACK); - fLine(79); + if (utf8) + chartran_init((char *)"CP437", (char *)"UTF-8", 'B'); + PUTSTR(chartran(fLine_str(75))); + chartran_close(); Enter(1);