diff -Nru kcc-2.3/debian/changelog kcc-2.3+really/debian/changelog --- kcc-2.3/debian/changelog 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/changelog 2020-11-25 05:05:22.000000000 +0000 @@ -1,8 +1,41 @@ -kcc (2.3-12.1build1) bionic; urgency=high +kcc (2.3+really-0.1) unstable; urgency=medium - * No change rebuild to pick up -fPIE compiler default + * Non-maintainer upload. + * Changed upstream version since 2.3-10 upstream orig tarball is NOT + upstream one but patched. So back it to really original source. + + * debian/changelog + - Trim trailing whitespace. + * debian/rules: + - Make debain/rules simplified + - Enable build hardening + * debian/source/format + - Upgrade to newer source format 3.0 (quilt). + * debian/control + - Bump debhelper from deprecated 9 to 12. + - Bump debhelper from old 12 to 13. + - Set debhelper-compat version in Build-Depends. + - Change priority extra to priority optional. + - Set Standards-Version: 4.5.1 + - Update descriptions + - Add Vcs-* + - Add Rules-Requires-Root: no + * Drop unnecessary debian/{README.Debian,TODO} + * Add debian/manpages to install manpages + * debian/patches + - Add 0001-Fix-build-failure-with-recent-gcc.patch + - Add 0002-Adjust-Makefile.patch + - Add 0003-Convert-jman-to-utf-8-ed-kcc.1.ja.patch + - Add 0004-Drop-man-installation-from-upstream-Makefile.patch + - Add 0005-Convert-README-to-utf-8-as-README.ja.patch + - Add 0006-Add-CPPFLAGS-and-LDFLAGS.patch + - Add 0007-Fix-wrong-manual-section.patch + * debian/copyright: Convert to copyright format 1.0 + * debian/kcc.1 + - Fix wrong-manual-section + * Add debian/salsa-ci.yml - -- Balint Reczey Tue, 03 Apr 2018 12:30:36 +0000 + -- Hideki Yamane Wed, 25 Nov 2020 14:05:22 +0900 kcc (2.3-12.1) unstable; urgency=medium @@ -23,13 +56,13 @@ kcc (2.3-12) unstable; urgency=low - * kcc.1: fix typo in manual page. (Thanks Rodrigo F. Baroni) + * kcc.1: fix typo in manual page. (Thanks Rodrigo F. Baroni) -- ARAKI Yasuhiro Mon, 29 Nov 2004 12:21:18 +0900 kcc (2.3-11) unstable; urgency=low - * kcc.c: fix for vargsgs.h to stdarg.h. Thanks to Matt Kraai . (Closes: #194937) + * kcc.c: fix for vargsgs.h to stdarg.h. Thanks to Matt Kraai . (Closes: #194937) -- ARAKI Yasuhiro Mon, 16 Jun 2003 13:53:40 +0900 @@ -82,7 +115,7 @@ * maintainer change to yasu@debian.or.jp -- Araki Yasuhiro Mon, 1 Jun 1998 17:38:00 +0900 - + kcc (2.3-2) unstable; urgency=low * ja_JP.EUC/man1/kcc.1 -> ja_JP.ujis/man1/kcc.1 @@ -94,5 +127,3 @@ * Initial Release. -- takeshi Tue, 29 Apr 1997 23:07:34 +0900 - - diff -Nru kcc-2.3/debian/compat kcc-2.3+really/debian/compat --- kcc-2.3/debian/compat 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -9 diff -Nru kcc-2.3/debian/control kcc-2.3+really/debian/control --- kcc-2.3/debian/control 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/control 2020-11-25 05:05:22.000000000 +0000 @@ -1,18 +1,17 @@ Source: kcc Section: text -Priority: extra -Maintainer: Ubuntu Developers -XSBC-Original-Maintainer: Araki Yasuhiro -Standards-Version: 3.9.6 -Build-Depends: debhelper (>= 9) +Priority: optional +Maintainer: Araki Yasuhiro +Standards-Version: 4.5.1 +Build-Depends: debhelper-compat (= 13) +Vcs-Git: https://salsa.debian.org/debian/kcc.git +Vcs-Browser: https://salsa.debian.org/debian/kcc +Rules-Requires-Root: no Package: kcc Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Kanji code filter - kcc can converts various Japanese encodings such as EUC-JP, + kcc can converts various Japanese encodings such as EUC-JP, 7bitJIS, 8bitJIS and ShiftJIS with Half-width Kana supports. kcc can detect these encoding automatically as much as possible. - . - Sponsored by Fumitoshi UKAI - diff -Nru kcc-2.3/debian/copyright kcc-2.3+really/debian/copyright --- kcc-2.3/debian/copyright 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/copyright 2020-11-25 05:05:22.000000000 +0000 @@ -1,23 +1,32 @@ -This package was debianized by Fumitoshi UKAI on -Mon, 23 Aug 1999 01:21:19 +0900. +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: kcc -Upstream Author: Yasuhiro Tonooka (tonooka@msi.co.jp) - -Copyright: - - This package is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 dated June, 1991. - - This package is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this package; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. - -On Debian GNU/Linux systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. +Files: * +Copyright: Yasuhiro Tonooka +License: GPL-2+ + +Files: debian/* +Copyright: 2020 Hideki Yamane +License: GPL-2+ + +Files: debian/patches/0001-Fix-build-failure-with-recent-gcc.patch + debian/kcc.1 +Copyright: 1999 Fumitoshi UKAI +License: GPL-2+ + +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". diff -Nru kcc-2.3/debian/docs kcc-2.3+really/debian/docs --- kcc-2.3/debian/docs 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/docs 2020-11-25 05:05:22.000000000 +0000 @@ -1 +1 @@ -README +README.ja diff -Nru kcc-2.3/debian/kcc.1 kcc-2.3+really/debian/kcc.1 --- kcc-2.3/debian/kcc.1 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/kcc.1 2020-11-25 05:05:22.000000000 +0000 @@ -6,7 +6,7 @@ .\" translated: Oct 15 1999 .\"------------------------------------------------ tonooka ------------ .\" @(#)kcc.jman 2.1 (Y.Tonooka) 9/6/93 -.TH KCC L "November 19, 1992" "Y. Tonooka" +.TH KCC 1 "November 19, 1992" "Y. Tonooka" .SH NAME kcc \- Kanji code coverter with encoding auto detection .SH SYNOPSIS @@ -21,7 +21,7 @@ .B kcc is a filter that reads .I file -sequencially, converts kanji encodings and output to stdout. +sequentially, converts kanji encodings and output to stdout. If no file is specified, or specified .B \- as filename, it read from stdin. @@ -45,7 +45,7 @@ .PD 0 .TP .BI \- IO -.IR I " for input kanji encoding" O +.IR I " for input kanji encoding," O for output kanji encoding. When no input encoding specified, it will be detected automatically, and if both of input/output aren't specified, output encoding is 7 bit @@ -202,7 +202,7 @@ don't convert but check input encoding and print result to stdout. Different with normal auto-detection, whole contents of file is checked. However, when inconsistency of encodings is found, abort reading and print -"data". Options except \fB\-x\fR\fB\-z\fR are ignored. +"data". Options except \fB\-x\fR,\fB\-z\fR are ignored. .SH EXAMPLES .IP "\fB% kcc \-e \fIfile" Input encoding are detect automatically, and output is in @@ -217,7 +217,7 @@ output of .I command are converted to .SM JIS\s0(\s-1JIS\s0 JIS X0208 -\s-1JIS\s0 JIS Roman\fB\s-1ESC\s0(I\fR Halfwidth Kana +\s-1JIS\s0 JIS Roman,\fB\s-1ESC\s0(I\fR Halfwidth Kana .SM JIS ) .IP "\fB% kcc \-c \fIfile" @@ -233,13 +233,13 @@ is recognized by escape sequence in certain. \s-1EUC\s0 and .SM DEC -are the same (refered as +are the same (referred as .SM EUC series). Halfwidth kana of 8 bit .SM JIS is the same as halfwidth kana of Shift .SM JIS -(refered as Shift +(referred as Shift .SM JIS series). However, .SM EUC diff -Nru kcc-2.3/debian/manpages kcc-2.3+really/debian/manpages --- kcc-2.3/debian/manpages 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/manpages 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,2 @@ +kcc.ja.1 +debian/kcc.1 diff -Nru kcc-2.3/debian/patches/0001-Fix-build-failure-with-recent-gcc.patch kcc-2.3+really/debian/patches/0001-Fix-build-failure-with-recent-gcc.patch --- kcc-2.3/debian/patches/0001-Fix-build-failure-with-recent-gcc.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0001-Fix-build-failure-with-recent-gcc.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,42 @@ +From: Hideki Yamane +Date: Tue, 24 Nov 2020 09:58:00 +0900 +Subject: Fix build failure with recent gcc + +--- + kcc.c | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/kcc.c b/kcc.c +index 1e7c630..cf01ed0 100644 +--- a/kcc.c ++++ b/kcc.c +@@ -134,7 +134,7 @@ extern unsigned short katakana[]; + extern unsigned short hiragana[]; + unsigned short *kanatbl = katakana; + +-void error(); ++void error(char *fmt, ...); + + /********************************************************************** + * * +@@ -364,16 +364,15 @@ main(c, v) + NAME + error - print formatted error message on stderr and die + ---------------------------------------------------------------------*/ +-#include ++#include + +-void error(va_alist) +- va_dcl ++void error(char *fmt, ...) + { + va_list args; + +- va_start(args); ++ va_start(args, fmt); + fprintf(stderr, "%s: ", progname); +- vfprintf(stderr, va_arg(args, char *), args); ++ vfprintf(stderr, fmt, args); + putc('\n', stderr); + va_end(args); + exit(1); diff -Nru kcc-2.3/debian/patches/0002-Adjust-Makefile.patch kcc-2.3+really/debian/patches/0002-Adjust-Makefile.patch --- kcc-2.3/debian/patches/0002-Adjust-Makefile.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0002-Adjust-Makefile.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,26 @@ +From: Hideki Yamane +Date: Tue, 24 Nov 2020 10:05:47 +0900 +Subject: Adjust Makefile + +--- + Makefile | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +diff --git a/Makefile b/Makefile +index c24aab1..f3ada71 100644 +--- a/Makefile ++++ b/Makefile +@@ -7,10 +7,9 @@ + + # @(#)Makefile 2.3 (Y.Tonooka) 3/28/94 + +- BINPATH = /usr/local/bin +- MANPATH = /usr/man +- JMANDIR = ja_JP.ujis +- CFLAGS = -O ++ BINPATH = $(DESTDIR)/usr/bin ++ MANPATH = $(DESTDIR)/usr/share/man ++ JMANDIR = ja_JP + + SHELL = /bin/sh + CP = cp diff -Nru kcc-2.3/debian/patches/0003-Convert-jman-to-utf-8-ed-kcc.1.ja.patch kcc-2.3+really/debian/patches/0003-Convert-jman-to-utf-8-ed-kcc.1.ja.patch --- kcc-2.3/debian/patches/0003-Convert-jman-to-utf-8-ed-kcc.1.ja.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0003-Convert-jman-to-utf-8-ed-kcc.1.ja.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,673 @@ +From: Hideki Yamane +Date: Tue, 24 Nov 2020 10:36:07 +0900 +Subject: Convert jman to utf-8 ed kcc.ja.1 + +--- + kcc.ja.1 | 325 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + kcc.jman | 325 --------------------------------------------------------------- + 2 files changed, 325 insertions(+), 325 deletions(-) + create mode 100644 kcc.ja.1 + delete mode 100644 kcc.jman + +diff --git a/kcc.ja.1 b/kcc.ja.1 +new file mode 100644 +index 0000000..ecd2d74 +--- /dev/null ++++ b/kcc.ja.1 +@@ -0,0 +1,325 @@ ++.\"-- << kanji code converter >> ---- ++.\" ++.\" kcc.jman ++.\" Aug 24 1992 ++.\" mod: Nov 19 1992 ++.\"------------------------------------------------ tonooka ------------ ++.\" @(#)kcc.jman 2.1 (Y.Tonooka) 9/6/93 ++.TH KCC L "1992年11月19日" "Y. Tonooka" ++.SH "名前" ++kcc \- 自動判別機能つき漢字コード変換 ++.SH "形式" ++.B kcc ++[ ++.BI \- IO chnvxz ++] [ ++.BI \-b " bufsize" ++] ++.RI [ " file " "] .\|.\|." ++.SH "機能説明" ++.B kcc ++は,指定した ++.I file ++を順番に読み込み,漢字コードを変換して標準出力に出力するフィルターです。 ++ファイルの指定がないとき,あるいはファイル名として ++.B \- ++が指定されたときには標準入力から読み込みます。入出力の漢字コードはオプシ ++ョンで指定しますが,入力コードを指定しないとファイルごとの自動判別になり ++ます。 ++.LP ++使える漢字コードは ++.SM JIS\s0(7 ビットおよび 8 ビット),シフト ++.SM JIS\s0,\s-1EUC\s0,\s-1DEC\s0 です。 ++入力コードは,\s-1EUC\s0,\s-1DEC\s0 あるいはシフト ++.SM JIS ++のいずれかと 7 ビット ++.SM JIS ++との組み合せに限り,混在が可能です。\s-1JIS\s0 の半角仮名は ++.BR \s-1SI\s0 / \s-1SO\s0 , \s-1ESC\s0(I ++ともに認識されます。 ++.SH "オプション" ++.TP ++.BI \- O ++.PD 0 ++.TP ++.BI \- IO ++.IR I " で入力漢字コードを," O ++で出力漢字コードを指定します。入力コードの指定がないときには自動判別に, ++また,どちらも指定しないとき出力コードは 7 ビット ++.SM JIS ++になります。 ++.PD ++.IP ++入力コードを指定する ++.I I ++は以下のうちの 1 つです。 ++.LP ++.RS 10 ++.PD 0 ++.TP ++.B e ++.SM EUC\s0(7 ビット ++.SM JIS ++混在可) ++.TP ++.B d ++.SM DEC\s0(7 ビット ++.SM JIS ++混在可) ++.TP ++.B s ++シフト ++.SM JIS\s0(7 ビット ++.SM JIS ++混在可) ++.TP ++.BR j , 7 " または " k ++7 ビット ++.SM JIS ++.TP ++.B 8 ++8 ビット ++.SM JIS ++.PD ++.RE ++.IP ++出力コードを指定する ++.I O ++は以下のうちの 1 つです。 ++.LP ++.RS 10 ++.PD 0 ++.TP ++.B e ++.SM EUC ++.TP ++.B d ++.SM DEC ++.TP ++.B s ++シフト ++.SM JIS ++.TP ++.BR j\fIXY " または " 7\fIXY ++7 ビット ++.RB \s-1JIS\s0( \s-1SI\s0 / \s-1SO\s0 ++による ++.SM JIS ++仮名指示) ++.TP ++.BI k XY ++7 ビット ++.RB \s-1JIS\s0( \s-1ESC\s0(I ++による ++.SM JIS ++仮名指示) ++.TP ++.BI 8 XY ++8 ビット ++.SM JIS ++.PD ++.RE ++.IP ++.I O ++中の ++.I XY ++で,\s-1JIS\s0 コード出力でのエスケープシークェンスが指定できます。省略 ++すると ++.B BJ ++とみなされます。なお,補助漢字指定は ++.B \s-1ESC\s0$(D ++で固定です。 ++.LP ++.RS 10 ++.PD 0 ++.TP ++.I X ++漢字指定 ++.RS 5 ++.TP ++.B B ++.BR \s-1ESC\s0$B "(第 2 次規格漢字指示) ++.TP ++.B @ ++.BR \s-1ESC\s0$@ "(第 1 次規格漢字指示) ++.TP ++.B + ++.BR \s-1ESC\s0&@\s-1ESC\s0$B "(第 3 次規格漢字指示) ++.RE ++.TP ++.I Y ++英数字指定 ++.RS 5 ++.TP ++.B B ++.BR \s-1ESC\s0(B "(ASCII 指示) ++.TP ++.B J ++.BR \s-1ESC\s0(J "(JIS ローマ字指示) ++.TP ++.B H ++.BR \s-1ESC\s0(H "(スウェーデン名前用文字指示) ++.PD ++.RE ++.RE ++.TP ++.B \-v ++入力コードの判別結果を標準エラー出力に出力します。 ++.TP ++.B \-x ++拡張モード。入力コードの自動判別で,外字や拡張文字領域(\s-1EUC\s0 の外 ++字・未定義の半角仮名・制御文字 ++.SM C1 ++の各領域,およびシフト ++.SM JIS ++の拡張文字領域)を認識します。\s-1DEC\s0 と ++.SM EUC ++との判別はこのモードでのみ,なされます。 ++.TP ++.B \-z ++縮小モード。入力コードの自動判別で半角仮名を認識しません(7 ビット ++.SM JIS ++を除く)。半角仮名を含まないファイルの場合,これを指定すると判別の確度が ++高まります。 ++.TP ++.B \-h ++半角仮名を ++.SM DEC ++に変換すると全角のカタカナに変換されますが,このオプションを指定するとひ ++らがなになります。 ++.TP ++.B \-n ++外字・拡張文字・補助漢字領域を“□”に,半角仮名の未定義領域を半角の ++“・”に変換します。 ++.TP ++.BI \-b " bufsize" ++入力の判別がつかないあいだ入力をためておくバッファーの大きさを指定しま ++す。省略時は 8k バイトです。 ++.TP ++.B \-c ++変換を行わず,入力コードの種類だけを調べ,結果を標準出力に出力します。通 ++常の自動判別の場合とは異なり,ファイルは最後まで調べられます。ただし,途 ++中でコード体系に矛盾が見つかった場合には読み込みを中断し“data”と表示し ++ます。\fB\-x\fR,\fB\-z\fR 以外のオプションは無効になります。 ++.SH "使用例" ++.IP "\fB% kcc \-e \fIfile" ++入力コード自動判別で出力コードは ++.SM EUC ++.IP "\fB% kcc \-sj \fIfile1 file2" ++シフト ++.SM JIS ++のファイル 2 つを ++.SM JIS ++へ変換し連結 ++.IP "\fB% \fIcommand\fB | kcc \-k+J" ++.I command ++出力を ++.SM JIS\s0(\s-1JIS\s0 第 3 次規格 ++漢字指示,\s-1JIS\s0 ローマ字指示,\fB\s-1ESC\s0(I\fR による ++.SM JIS ++仮名指示)へ ++.IP "\fB% kcc \-c \fIfile" ++.I file ++のコードを判別する(変換は行わない) ++.SH "補足説明" ++入力コードの自動判別は通常の文書においてはほぼ確実に行えますが,以下のよ ++うな問題を含んでいます。 ++.LP ++7 ビット ++.SM JIS ++はエスケープシークェンスによるモード切り替えによっていて確実に判別されま ++す。\s-1EUC\s0 と ++.SM DEC ++は根本的には同じものです(以下 ++.SM EUC ++系と呼ぶ)。一方,8 ビット ++.SM JIS ++の半角仮名はシフト ++.SM JIS ++の半角仮名と同じです(同シフト ++.SM JIS ++系)。ところが,共に 8 ビットコードである ++.SM EUC ++系とシフト ++.SM JIS ++系は,領域が広く重なっていて背反しています。つまり,コードの自動判定の問 ++題点はこの 2 つの判別にあります。 ++.LP ++.SM EUC ++系/シフト ++.SM JIS ++系の判別は行単位で行い,「シフト ++.SM JIS ++系でない」あるいは「\s-1EUC\s0 系でない」と分かった時点で確定とします。 ++どちらにも矛盾する行が最初に現れたときには“data”扱いになり,出力内容は ++保証されません。 ++.LP ++最初に 8 ビットの漢字コードが現れてから ++.SM EUC ++系/シフト ++.SM JIS ++系の判別がつくまでは,変換を保留し,入力をバッファーにためておきますが, ++これがいっぱいになると ++.SM EUC ++系であると決めつけて変換を強行します。根拠は以下のとおりです。通常の漢字 ++入りの文書は ++.SM JIS ++非漢字か ++.SM JIS ++第 1 水準の漢字をまず含んでいると考えられますが,シフト ++.SM JIS ++の場合,これらの文字は一部を除いて ++.SM EUC ++系の領域とは重なっていないため,確実に判別されます。つまり,判別できない ++ときには ++.SM EUC ++である可能性が高いわけです。 ++.LP ++8 ビット ++.SM JIS ++で,半角仮名が必ず偶数個連続して現れているときは,\s-1EUC\s0 の漢字であ ++ると誤認されてしまうので注意が必要です。 ++.LP ++入力が半角仮名を含まないときには ++.B \-z ++オプションの縮小モードを利用すると判別の確度が高まります。これは重なる領 ++域が ++.SM JIS ++第 2 水準漢字内に限定されるからです。 ++.LP ++シフト ++.SM JIS ++の拡張領域・\s-1EUC\s0 の外字領域・\s-1EUC\s0 の制御文字 ++.SM C1 ++の領域・\s-1EUC\s0 の半角仮名の未定義領域は,自動判別の認識対象には入ら ++ないので,これらを含む入力では誤った判別がなされてしまいます。このときは ++.B \-x ++オプションで拡張モードを指定するか,入力コードを明示的に指定してくださ ++い。 ++.SH "関連項目" ++.BR cat (1) ++.SH "その他" ++通常,外字・拡張文字・補助漢字領域はそれぞれの対応する領域に投影されま ++す。ただし,シフト ++.SM JIS ++への変換で拡張文字領域からはみ出す文字は,16 進で FCFC になります。 ++\s-1EUC\s0 と ++.SM DEC ++の制御文字領域 ++.SM C1 ++は, ++.SM JIS ++へ変換する場合はそのままですが,シフト ++.SM JIS ++への場合には削除されます。また,半角仮名の未定義領域は,シフト ++.SM JIS ++に変換すると,半角の“・”に置き換えられます。半角仮名を ++.SM DEC ++に変換すると全角の仮名に変換されます。 ++.LP ++.SM JIS ++コード出力の場合,改行・タブ・抹消などの制御文字や空白(半角)は,英数字 ++モードで出力されます。 ++.LP ++入力コードの自動判別を誤った場合,また,それぞれの文字セットに未定義の文 ++字が入力された場合,出力がどうなるかは不定です。 +diff --git a/kcc.jman b/kcc.jman +deleted file mode 100644 +index ef844c8..0000000 +--- a/kcc.jman ++++ /dev/null +@@ -1,325 +0,0 @@ +-.\"-- << kanji code converter >> ---- +-.\" +-.\" kcc.jman +-.\" Aug 24 1992 +-.\" mod: Nov 19 1992 +-.\"------------------------------------------------ tonooka ------------ +-.\" @(#)kcc.jman 2.1 (Y.Tonooka) 9/6/93 +-.TH KCC L "1992ǯ1119" "Y. Tonooka" +-.SH "̾" +-kcc \- ưȽ̵ǽĤѴ +-.SH "" +-.B kcc +-[ +-.BI \- IO chnvxz +-] [ +-.BI \-b " bufsize" +-] +-.RI [ " file " "] .\|.\|." +-.SH "ǽ" +-.B kcc +-ϡꤷ +-.I file +-֤ɤ߹ߡɤѴɸϤ˽Ϥե륿Ǥ +-եλ꤬ʤȤ뤤ϥե̾Ȥ +-.B \- +-ꤵ줿ȤˤɸϤɤ߹ߤޤϤδɤϥץ +-ǻꤷޤϥɤꤷʤȥե뤴ȤμưȽ̤ˤʤ +-ޤ +-.LP +-Ȥɤ +-.SM JIS\s07 ӥåȤ 8 ӥåȡˡե +-.SM JIS\s0\s-1EUC\s0\s-1DEC\s0 Ǥ +-ϥɤϡ\s-1EUC\s0\s-1DEC\s0 뤤ϥե +-.SM JIS +-Τ줫 7 ӥå +-.SM JIS +-ȤȤ߹礻˸¤ꡤߤǽǤ\s-1JIS\s0 ȾѲ̾ +-.BR \s-1SI\s0 / \s-1SO\s0 \s-1ESC\s0(I +-Ȥǧޤ +-.SH "ץ" +-.TP +-.BI \- O +-.PD 0 +-.TP +-.BI \- IO +-.IR I " ϴɤ" O +-ǽϴɤꤷޤϥɤλ꤬ʤȤˤϼưȽ̤ˡ +-ޤɤꤷʤȤϥɤ 7 ӥå +-.SM JIS +-ˤʤޤ +-.PD +-.IP +-ϥɤꤹ +-.I I +-ϰʲΤ 1 ĤǤ +-.LP +-.RS 10 +-.PD 0 +-.TP +-.B e +-.SM EUC\s07 ӥå +-.SM JIS +-߲ġ +-.TP +-.B d +-.SM DEC\s07 ӥå +-.SM JIS +-߲ġ +-.TP +-.B s +-ե +-.SM JIS\s07 ӥå +-.SM JIS +-߲ġ +-.TP +-.BR j 7 " ޤ " k +-7 ӥå +-.SM JIS +-.TP +-.B 8 +-8 ӥå +-.SM JIS +-.PD +-.RE +-.IP +-ϥɤꤹ +-.I O +-ϰʲΤ 1 ĤǤ +-.LP +-.RS 10 +-.PD 0 +-.TP +-.B e +-.SM EUC +-.TP +-.B d +-.SM DEC +-.TP +-.B s +-ե +-.SM JIS +-.TP +-.BR j\fIXY " ޤ " 7\fIXY +-7 ӥå +-.RB \s-1JIS\s0 \s-1SI\s0 / \s-1SO\s0 +-ˤ +-.SM JIS +-̾ؼ +-.TP +-.BI k XY +-7 ӥå +-.RB \s-1JIS\s0 \s-1ESC\s0(I +-ˤ +-.SM JIS +-̾ؼ +-.TP +-.BI 8 XY +-8 ӥå +-.SM JIS +-.PD +-.RE +-.IP +-.I O +- +-.I XY +-ǡ\s-1JIS\s0 ɽϤǤΥץ󥹤Ǥޤά +- +-.B BJ +-Ȥߤʤޤʤ +-.B \s-1ESC\s0$(D +-ǸǤ +-.LP +-.RS 10 +-.PD 0 +-.TP +-.I X +- +-.RS 5 +-.TP +-.B B +-.BR \s-1ESC\s0$B " 2 ʴؼ +-.TP +-.B @ +-.BR \s-1ESC\s0$@ " 1 ʴؼ +-.TP +-.B + +-.BR \s-1ESC\s0&@\s-1ESC\s0$B " 3 ʴؼ +-.RE +-.TP +-.I Y +-ѿ +-.RS 5 +-.TP +-.B B +-.BR \s-1ESC\s0(B "ASCII ؼ +-.TP +-.B J +-.BR \s-1ESC\s0(J "JIS ޻ؼ +-.TP +-.B H +-.BR \s-1ESC\s0(H "ʥǥ̾ʸؼ +-.PD +-.RE +-.RE +-.TP +-.B \-v +-ϥɤȽ̷̤ɸ२顼Ϥ˽Ϥޤ +-.TP +-.B \-x +-ĥ⡼ɡϥɤμưȽ̤ǡĥʸΰ\s-1EUC\s0 γ +-̤ȾѲ̾ʸ +-.SM C1 +-γΰ衤ӥե +-.SM JIS +-γĥʸΰˤǧޤ\s-1DEC\s0 +-.SM EUC +-ȤȽ̤ϤΥ⡼ɤǤΤߡʤޤ +-.TP +-.B \-z +-̾⡼ɡϥɤμưȽ̤ȾѲ̾ǧޤ7 ӥå +-.SM JIS +-ˡȾѲ̾ޤޤʤեξ硤ꤹȽ̤γ٤ +-ޤޤ +-.TP +-.B \-h +-ȾѲ̾ +-.SM DEC +-ѴѤΥʤѴޤΥץꤹȤ +-餬ʤˤʤޤ +-.TP +-.B \-n +-ĥʸΰȢɤˡȾѲ̤̾ΰȾѤ +-ȡɤѴޤ +-.TP +-.BI \-b " bufsize" +-ϤȽ̤ĤʤϤ򤿤ƤХåե礭ꤷ +-ά 8k ХȤǤ +-.TP +-.B \-c +-ѴԤ鷺ϥɤμĴ١̤ɸϤ˽Ϥޤ +-μưȽ̤ξȤϰۤʤꡤեϺǸޤĴ٤ޤ +-ǥηϤ̷⤬Ĥäˤɤ߹ߤǤdataɤɽ +-ޤ\fB\-x\fR\fB\-z\fR ʳΥץ̵ˤʤޤ +-.SH "" +-.IP "\fB% kcc \-e \fIfile" +-ϥɼưȽ̤ǽϥɤ +-.SM EUC +-.IP "\fB% kcc \-sj \fIfile1 file2" +-ե +-.SM JIS +-Υե 2 Ĥ +-.SM JIS +-ѴϢ +-.IP "\fB% \fIcommand\fB | kcc \-k+J" +-.I command +-Ϥ +-.SM JIS\s0\s-1JIS\s0 3 +-ؼ\s-1JIS\s0 ޻ؼ\fB\s-1ESC\s0(I\fR ˤ +-.SM JIS +-̾ؼˤ +-.IP "\fB% kcc \-c \fIfile" +-.I file +-ΥɤȽ̤ѴϹԤʤ +-.SH "­" +-ϥɤμưȽ̤̾ʸˤƤϤۤܳμ¤˹ԤޤʲΤ +-ޤǤޤ +-.LP +-7 ӥå +-.SM JIS +-ϥץ󥹤ˤ⡼ڤؤˤäƤƳμ¤Ƚ̤ +-\s-1EUC\s0 +-.SM DEC +-ϺŪˤƱΤǤʰʲ +-.SM EUC +-ϤȸƤ֡ˡ8 ӥå +-.SM JIS +-ȾѲ̾ϥե +-.SM JIS +-ȾѲ̾ƱǤƱե +-.SM JIS +-ϡˡȤ 8 ӥåȥɤǤ +-.SM EUC +-Ϥȥե +-.SM JIS +-Ϥϡΰ褬ŤʤäƤȿƤޤĤޤꡤɤμưȽ +-Ϥ 2 ĤȽ̤ˤޤ +-.LP +-.SM EUC +-/ե +-.SM JIS +-ϤȽ̤Ϲñ̤ǹԤ֥ե +-.SM JIS +-ϤǤʤפ뤤ϡ\s-1EUC\s0 ϤǤʤפʬädzȤޤ +-ɤˤ̷⤹Ԥǽ˸줿ȤˤϡdataɰˤʤꡤƤ +-ݾڤޤ +-.LP +-ǽ 8 ӥåȤδɤƤ +-.SM EUC +-/ե +-.SM JIS +-ϤȽ̤ĤޤǤϡѴαϤХåեˤƤޤ +-줬äѤˤʤ +-.SM EUC +-ϤǤȷĤѴ򶯹ԤޤϰʲΤȤǤ̾δ +-ʸ +-.SM JIS +- +-.SM JIS +- 1 δޤޤǤȹͤޤե +-.SM JIS +-ξ硤ʸϰ +-.SM EUC +-ϤΰȤϽŤʤäƤʤᡤμ¤Ƚ̤ޤĤޤꡤȽ̤Ǥʤ +-Ȥˤ +-.SM EUC +-Ǥǽ⤤櫓Ǥ +-.LP +-8 ӥå +-.SM JIS +-ǡȾѲ̾ɬϢ³ƸƤȤϡ\s-1EUC\s0 δǤ +-ȸǧƤޤΤդɬפǤ +-.LP +-ϤȾѲ̾ޤޤʤȤˤ +-.B \-z +-ץν̾⡼ɤѤȽ̤γ٤ޤޤϽŤʤ +-褬 +-.SM JIS +- 2 ˸ꤵ뤫Ǥ +-.LP +-ե +-.SM JIS +-γĥΰ衦\s-1EUC\s0 γΰ衦\s-1EUC\s0 ʸ +-.SM C1 +-ΰ衦\s-1EUC\s0 ȾѲ̤̾ΰϡưȽ̤ǧоݤˤ +-ʤΤǡޤϤǤϸäȽ̤ʤƤޤޤΤȤ +-.B \-x +-ץdzĥ⡼ɤꤹ뤫ϥɤŪ˻ꤷƤ +- +-.SH "Ϣ" +-.BR cat (1) +-.SH "¾" +-̾ĥʸΰϤ줾бΰƤ +-ե +-.SM JIS +-ؤѴdzĥʸΰ褫Ϥ߽Фʸϡ16 ʤ FCFC ˤʤޤ +-\s-1EUC\s0 +-.SM DEC +-ʸΰ +-.SM C1 +-ϡ +-.SM JIS +-ѴϤΤޤޤǤե +-.SM JIS +-ؤξˤϺޤޤȾѲ̤̾ΰϡե +-.SM JIS +-ѴȡȾѤΡȡɤ֤ޤȾѲ̾ +-.SM DEC +-ѴѤβ̾Ѵޤ +-.LP +-.SM JIS +-ɽϤξ硤ԡ֡äʤɤʸȾѡˤϡѿ +-⡼ɤǽϤޤ +-.LP +-ϥɤμưȽ̤ä硤ޤ줾ʸåȤ̤ʸ +-Ϥ줿硤Ϥɤʤ뤫Ǥ diff -Nru kcc-2.3/debian/patches/0004-Drop-man-installation-from-upstream-Makefile.patch kcc-2.3+really/debian/patches/0004-Drop-man-installation-from-upstream-Makefile.patch --- kcc-2.3/debian/patches/0004-Drop-man-installation-from-upstream-Makefile.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0004-Drop-man-installation-from-upstream-Makefile.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,38 @@ +From: Hideki Yamane +Date: Tue, 24 Nov 2020 10:46:12 +0900 +Subject: Drop man installation from upstream Makefile + +Use debian/manpages to kick dh_installman +--- + Makefile | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/Makefile b/Makefile +index f3ada71..0ddce35 100644 +--- a/Makefile ++++ b/Makefile +@@ -8,8 +8,6 @@ + # @(#)Makefile 2.3 (Y.Tonooka) 3/28/94 + + BINPATH = $(DESTDIR)/usr/bin +- MANPATH = $(DESTDIR)/usr/share/man +- JMANDIR = ja_JP + + SHELL = /bin/sh + CP = cp +@@ -29,15 +27,10 @@ install: $(BINPATH)/kcc + @echo "\`make install' done." + @echo "Run \`make install.man' to install a manual." + +-install.man: $(MANPATH)/$(JMANDIR)/man1/kcc.1 +- + $(BINPATH)/kcc: kcc.c + $(MAKE) kcc + $(INSTALL) -s kcc $(BINPATH) + +-$(MANPATH)/$(JMANDIR)/man1/kcc.1: kcc.jman +- $(INSTALL) -m 644 kcc.jman $@ +- + clean: + rm -f $(CMDS) $(OBJS) mon.out gmon.out make.log + diff -Nru kcc-2.3/debian/patches/0005-Convert-README-to-utf-8-as-README.ja.patch kcc-2.3+really/debian/patches/0005-Convert-README-to-utf-8-as-README.ja.patch --- kcc-2.3/debian/patches/0005-Convert-README-to-utf-8-as-README.ja.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0005-Convert-README-to-utf-8-as-README.ja.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,73 @@ +From: Hideki Yamane +Date: Tue, 24 Nov 2020 10:56:23 +0900 +Subject: Convert README to utf-8 as README.ja + +--- + README | 25 ------------------------- + README.ja | 25 +++++++++++++++++++++++++ + 2 files changed, 25 insertions(+), 25 deletions(-) + delete mode 100644 README + create mode 100644 README.ja + +diff --git a/README b/README +deleted file mode 100644 +index e2957a2..0000000 +--- a/README ++++ /dev/null +@@ -1,25 +0,0 @@ +- +-kccϡưȽ̵ǽĤɥե륿Ǥ +- +- +- +- ܸEUC7ӥåJIS8ӥåJISեJISޤ +- +- ȾѤʡפˤбƤޤ +- +- ܤܸ쥪饤ޥ˥奢ǸƲ +- +-ڥ󥹥ȡ +- +- $ make install +- +- ǡmakeȥ󥹥ȡ뤬Ԥޤ +- +- $ make install.man +- +- ǡܸޥ˥奢Υ󥹥ȡ뤬Ԥޤ +- ܸޥ˥奢Υ֥ǥ쥯ȥ꡼japaneseǤǤʤȤˤϡ +- +- $ make JMANDIR=ja.JP_EUC install.man +- +- ʤɤȤƤ +diff --git a/README.ja b/README.ja +new file mode 100644 +index 0000000..d261bb7 +--- /dev/null ++++ b/README.ja +@@ -0,0 +1,25 @@ ++ ++kccは,自動判別機能つき漢字コードフィルターです。 ++ ++【説明】 ++ ++ 日本語EUC,7ビットJIS,8ビットJIS,シフトJISが扱えます。 ++ ++ 「半角かな」にも対応しています。 ++ ++ 詳しくは日本語オンラインマニュアルで見て下さい。 ++ ++【インストール】 ++ ++ $ make install ++ ++ で,makeとインストールが行われます。 ++ ++ $ make install.man ++ ++ で,日本語マニュアルのインストールが行われます。 ++ 日本語マニュアルのサブディレクトリーが‘japanese’でないときには, ++ ++ $ make JMANDIR=ja.JP_EUC install.man ++ ++ などとしてください。 diff -Nru kcc-2.3/debian/patches/0006-Add-CPPFLAGS-and-LDFLAGS.patch kcc-2.3+really/debian/patches/0006-Add-CPPFLAGS-and-LDFLAGS.patch --- kcc-2.3/debian/patches/0006-Add-CPPFLAGS-and-LDFLAGS.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0006-Add-CPPFLAGS-and-LDFLAGS.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,21 @@ +From: Hideki Yamane +Date: Wed, 25 Nov 2020 13:47:17 +0900 +Subject: Add CPPFLAGS and LDFLAGS + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 0ddce35..d23b4bf 100644 +--- a/Makefile ++++ b/Makefile +@@ -21,7 +21,7 @@ + all: kcc + + kcc: kcc.o +- $(CC) $(CFLAGS) -o kcc kcc.o ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o kcc kcc.o + + install: $(BINPATH)/kcc + @echo "\`make install' done." diff -Nru kcc-2.3/debian/patches/0007-Fix-wrong-manual-section.patch kcc-2.3+really/debian/patches/0007-Fix-wrong-manual-section.patch --- kcc-2.3/debian/patches/0007-Fix-wrong-manual-section.patch 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/0007-Fix-wrong-manual-section.patch 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,21 @@ +From: Hideki Yamane +Date: Wed, 25 Nov 2020 13:57:42 +0900 +Subject: Fix wrong-manual-section + +--- + kcc.ja.1 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kcc.ja.1 b/kcc.ja.1 +index ecd2d74..ff1c68b 100644 +--- a/kcc.ja.1 ++++ b/kcc.ja.1 +@@ -5,7 +5,7 @@ + .\" mod: Nov 19 1992 + .\"------------------------------------------------ tonooka ------------ + .\" @(#)kcc.jman 2.1 (Y.Tonooka) 9/6/93 +-.TH KCC L "1992年11月19日" "Y. Tonooka" ++.TH KCC 1 "1992年11月19日" "Y. Tonooka" + .SH "名前" + kcc \- 自動判別機能つき漢字コード変換 + .SH "形式" diff -Nru kcc-2.3/debian/patches/series kcc-2.3+really/debian/patches/series --- kcc-2.3/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/patches/series 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,7 @@ +0001-Fix-build-failure-with-recent-gcc.patch +0002-Adjust-Makefile.patch +0003-Convert-jman-to-utf-8-ed-kcc.1.ja.patch +0004-Drop-man-installation-from-upstream-Makefile.patch +0005-Convert-README-to-utf-8-as-README.ja.patch +0006-Add-CPPFLAGS-and-LDFLAGS.patch +0007-Fix-wrong-manual-section.patch diff -Nru kcc-2.3/debian/README.Debian kcc-2.3+really/debian/README.Debian --- kcc-2.3/debian/README.Debian 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/README.Debian 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -kcc for Debian ----------------------- - -kanji code echanger with code auto recognition - - Araki Yasuhiro , Fri, 13 Nov 1998 16:36:06 +0900 - -- Fumitoshi UKAI , Mon, 23 Aug 1999 01:21:19 +0900 diff -Nru kcc-2.3/debian/rules kcc-2.3+really/debian/rules --- kcc-2.3/debian/rules 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/rules 2020-11-25 05:05:22.000000000 +0000 @@ -1,94 +1,12 @@ #!/usr/bin/make -f -#-*- makefile -*- -# Made with the aid of dh_make, by Craig Small -# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. -# Some lines taken from debmake, by Christoph Lameter. - # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -CFLAGS = -O2 -Wall -INSTALL = install -INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 -INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 -INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 -INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 - -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) -CFLAGS += -g -endif -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) -INSTALL_PROGRAM += -s -endif - -build: build-stamp -build-stamp: - dh_testdir - - # Add here commands to compile the package. - $(MAKE) CFLAGS="$(CFLAGS)" - - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp install-stamp - - # Add here commands to clean up after the build process. - -$(MAKE) clean - - dh_clean - -install: install-stamp -install-stamp: build-stamp - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/tmp. - $(MAKE) install BINPATH=`pwd`/debian/kcc/usr/bin \ - INSTALL="$(INSTALL)" INSTALL_PROGRAM="$(INSTALL_PROGRAM)" - $(MAKE) install.man MANPATH=`pwd`/debian/kcc/usr/share/man \ - JMANDIR=ja \ - INSTALL="$(INSTALL)" INSTALL_FILE="$(INSTALL_FILE)" - touch install-stamp - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. +export DEB_BUILD_MAINT_OPTIONS := hardening=+all -# Build architecture-dependent files here. -binary-arch: build install -# dh_testversion - dh_testdir - dh_testroot - dh_installdocs - dh_installexamples - dh_installmenu -# dh_installemacsen -# dh_installinit - dh_installcron - dh_installman debian/kcc.1 -# dh_undocumented - dh_installchangelogs - dh_link - dh_strip - dh_compress - dh_fixperms - # You may want to make some executables suid here -# dh_suidregister -# dh_makeshlibs - dh_installdeb -# dh_perl - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk -source diff: - @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary +%: + dh $@ diff -Nru kcc-2.3/debian/salsa-ci.yml kcc-2.3+really/debian/salsa-ci.yml --- kcc-2.3/debian/salsa-ci.yml 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/salsa-ci.yml 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff -Nru kcc-2.3/debian/source/format kcc-2.3+really/debian/source/format --- kcc-2.3/debian/source/format 1970-01-01 00:00:00.000000000 +0000 +++ kcc-2.3+really/debian/source/format 2020-11-25 05:05:22.000000000 +0000 @@ -0,0 +1 @@ +3.0 (quilt) diff -Nru kcc-2.3/debian/TODO kcc-2.3+really/debian/TODO --- kcc-2.3/debian/TODO 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/debian/TODO 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -English manpages diff -Nru kcc-2.3/kcc.c kcc-2.3+really/kcc.c --- kcc-2.3/kcc.c 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/kcc.c 2020-11-24 00:39:41.000000000 +0000 @@ -134,7 +134,7 @@ extern unsigned short hiragana[]; unsigned short *kanatbl = katakana; -void error(char *fmt, ...); +void error(); /********************************************************************** * * @@ -364,15 +364,16 @@ NAME error - print formatted error message on stderr and die ---------------------------------------------------------------------*/ -#include +#include -void error(char *fmt, ...) +void error(va_alist) + va_dcl { va_list args; - va_start(args, fmt); + va_start(args); fprintf(stderr, "%s: ", progname); - vfprintf(stderr, fmt, args); + vfprintf(stderr, va_arg(args, char *), args); putc('\n', stderr); va_end(args); exit(1); diff -Nru kcc-2.3/Makefile kcc-2.3+really/Makefile --- kcc-2.3/Makefile 2020-12-20 16:08:19.000000000 +0000 +++ kcc-2.3+really/Makefile 2020-11-24 00:39:41.000000000 +0000 @@ -16,8 +16,6 @@ CP = cp MAKE = make INSTALL = install - INSTALL_PROGRAM = $(INSTALL) -s - INSTALL_FILE = $(INSTALL) -m 644 CMDS = kcc SRCS = kcc.c @@ -36,10 +34,10 @@ $(BINPATH)/kcc: kcc.c $(MAKE) kcc - $(INSTALL_PROGRAM) kcc $(BINPATH) + $(INSTALL) -s kcc $(BINPATH) $(MANPATH)/$(JMANDIR)/man1/kcc.1: kcc.jman - $(INSTALL_FILE) kcc.jman $@ + $(INSTALL) -m 644 kcc.jman $@ clean: rm -f $(CMDS) $(OBJS) mon.out gmon.out make.log