diff options
author | steve <steve@FreeBSD.org> | 2000-01-24 13:52:02 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-01-24 13:52:02 +0800 |
commit | 2450ad23387f34cfa314031c31c4b0497ced91b6 (patch) | |
tree | 4a8d0cf95a09457bd167a40b79d843d6e2e1c427 /japanese/e2ps | |
parent | 4574103d80759a9994ddf9b6d32639084fcae14f (diff) | |
download | freebsd-ports-gnome-2450ad23387f34cfa314031c31c4b0497ced91b6.tar.gz freebsd-ports-gnome-2450ad23387f34cfa314031c31c4b0497ced91b6.tar.zst freebsd-ports-gnome-2450ad23387f34cfa314031c31c4b0497ced91b6.zip |
Fix a couple of Y2K problems.
PR: 16062
Submitted by: maintainer
Diffstat (limited to 'japanese/e2ps')
-rw-r--r-- | japanese/e2ps/files/patch-aa | 33 | ||||
-rw-r--r-- | japanese/e2ps/files/patch-ab | 15 | ||||
-rw-r--r-- | japanese/e2ps/files/patch-ac | 19 |
3 files changed, 67 insertions, 0 deletions
diff --git a/japanese/e2ps/files/patch-aa b/japanese/e2ps/files/patch-aa new file mode 100644 index 000000000000..a1e5c63712cd --- /dev/null +++ b/japanese/e2ps/files/patch-aa @@ -0,0 +1,33 @@ +*** 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); + + /* ヘッダ */ diff --git a/japanese/e2ps/files/patch-ab b/japanese/e2ps/files/patch-ab new file mode 100644 index 000000000000..bea0b9726830 --- /dev/null +++ b/japanese/e2ps/files/patch-ab @@ -0,0 +1,15 @@ +*** e2ps.h.orig Wed Nov 4 22:44:09 1998 +--- e2ps.h Wed Jan 5 11:32:16 2000 +*************** +*** 10,15 **** +--- 10,19 ---- + #include <signal.h> + #include <string.h> + #include <math.h> ++ #include <sys/types.h> ++ #include <unistd.h> ++ #include <stdlib.h> ++ + + /* 定数類 */ + #define NAME "e2ps" /* 名前 */ diff --git a/japanese/e2ps/files/patch-ac b/japanese/e2ps/files/patch-ac new file mode 100644 index 000000000000..5113d49e792c --- /dev/null +++ b/japanese/e2ps/files/patch-ac @@ -0,0 +1,19 @@ +*** Makefile.orig Wed Nov 4 22:42:02 1998 +--- Makefile Wed Jan 5 12:32:13 2000 +*************** +*** 27,33 **** + FONTSIZE = 10.0 + + # デフォルトプリンタ +! PRINTER = \"papyrus\" + + # 定義群 + DEFINES = \ +--- 27,33 ---- + FONTSIZE = 10.0 + + # デフォルトプリンタ +! PRINTER = \"lp\" + + # 定義群 + DEFINES = \ |