OSDN Git Service

* Refix: Continue conversion when nkf can't read a file in multiple files
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Thu, 12 Oct 2006 01:59:31 +0000 (01:59 +0000)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Thu, 12 Oct 2006 01:59:31 +0000 (01:59 +0000)
  [nkf-bugs#9049] patch by tek

nkf.c

diff --git a/nkf.c b/nkf.c
index 835e631..a56a912 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -39,9 +39,9 @@
 **        E-Mail: furukawa@tcp-ip.or.jp
 **    \e$B$^$G8fO"Mm$r$*4j$$$7$^$9!#\e(B
 ***********************************************************************/
 **        E-Mail: furukawa@tcp-ip.or.jp
 **    \e$B$^$G8fO"Mm$r$*4j$$$7$^$9!#\e(B
 ***********************************************************************/
-/* $Id: nkf.c,v 1.111 2006/10/08 03:02:34 naruse Exp $ */
+/* $Id: nkf.c,v 1.112 2006/10/11 16:59:31 naruse Exp $ */
 #define NKF_VERSION "2.0.8"
 #define NKF_VERSION "2.0.8"
-#define NKF_RELEASE_DATE "2006-09-15"
+#define NKF_RELEASE_DATE "2006-10-12"
 #include "config.h"
 #include "utf8tbl.h"
 
 #include "config.h"
 #include "utf8tbl.h"
 
@@ -863,8 +863,8 @@ int main(int argc, char **argv)
 #endif
           if ((fin = fopen((origfname = *argv++), "r")) == NULL) {
               perror(*--argv);
 #endif
           if ((fin = fopen((origfname = *argv++), "r")) == NULL) {
               perror(*--argv);
-               continue;\r
-              return(-1);
+               *argv++;
+               continue;
           } else {
 #ifdef OVERWRITE
               int fd = 0;
           } else {
 #ifdef OVERWRITE
               int fd = 0;