1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/japanese/e2ps/files/patch-aa
Steve Price d0e744c166 Fix a couple of Y2K problems.
PR:		16062
Submitted by:	maintainer
2000-01-24 05:52:02 +00:00

34 lines
1.0 KiB
Plaintext

*** e2ps.c.orig Wed Nov 4 22:44:30 1998
--- e2ps.c Wed Jan 5 11:45:18 2000
***************
*** 87,92 ****
--- 87,95 ----
void help(char *,char *); /* ヘルプとエラー */
void quit(int); /* 停止された時 */
+ extern char *euc(unsigned char *);
+ extern char *ps_font(char *, float *);
+
void main(int argc,char **argv) {
FILE *read;
struct tm *systime;
***************
*** 112,119 ****
/* 日付・時刻をセット */
nowtime = time(NULL);
systime = localtime(&nowtime);
! sprintf(NOWTIME,"%s %.2d 19%.2d %.2d:%.2d:%.2d"
! , month(systime->tm_mon) , systime->tm_mday , systime->tm_year
, systime->tm_hour , systime->tm_min , systime->tm_sec);
/* ヘッダ */
--- 115,122 ----
/* 日付・時刻をセット */
nowtime = time(NULL);
systime = localtime(&nowtime);
! sprintf(NOWTIME,"%s %.2d %.4d %.2d:%.2d:%.2d"
! , month(systime->tm_mon) , systime->tm_mday , systime->tm_year+1900
, systime->tm_hour , systime->tm_min , systime->tm_sec);
/* ヘッダ */