Timestats now UTF-8 aware

This commit is contained in:
Michiel Broek 2007-03-01 15:17:16 +00:00
parent e31e54ba4e
commit bce8145f4c
3 changed files with 10 additions and 5 deletions

View File

@ -32,8 +32,9 @@ v0.91.5 18-Feb-2007
Display ansi file converts to UTF-8 if the user has UTF-8. Display ansi file converts to UTF-8 if the user has UTF-8.
Email and FTN mail reading now translates to the users Email and FTN mail reading now translates to the users
characterset using glibc iconv. characterset using glibc iconv.
Changed menus lastcallers, whoson, userlist, pinfo, fsedit to Changed menus lastcallers, whoson, userlist, pinfo, fsedit,
output UTF-8 code if the user has set that terminal setting. timestats to output UTF-8 code if the user has set that terminal
setting.
mbfile: mbfile:
The index command produces UTF-8 webpages. The index command produces UTF-8 webpages.

View File

@ -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 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 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 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 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 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 ymrecv.o: ../config.h ../lib/mbselib.h ../lib/mbse.h ttyio.h timeout.h transfer.h zmmisc.h zmrecv.h ymsend.h ymrecv.h

View File

@ -4,7 +4,7 @@
* Purpose ...............: Time Statistics * Purpose ...............: Time Statistics
* *
***************************************************************************** *****************************************************************************
* Copyright (C) 1997-2005 * Copyright (C) 1997-2007
* *
* Michiel Broek FIDO: 2:280/2802 * Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10 * Beekmansbos 10
@ -38,6 +38,7 @@
#include "input.h" #include "input.h"
#include "exitinfo.h" #include "exitinfo.h"
#include "term.h" #include "term.h"
#include "ttyio.h"
void TimeStats() void TimeStats()
@ -61,7 +62,10 @@ void TimeStats()
poutCR(WHITE, BLACK, msg); poutCR(WHITE, BLACK, msg);
colour(LIGHTRED, BLACK); colour(LIGHTRED, BLACK);
fLine(79); if (utf8)
chartran_init((char *)"CP437", (char *)"UTF-8", 'B');
PUTSTR(chartran(fLine_str(75)));
chartran_close();
Enter(1); Enter(1);