** E-Mail: furukawa@tcp-ip.or.jp
** \e$B$^$G8fO"Mm$r$*4j$$$7$^$9!#\e(B
***********************************************************************/
-/* $Id: nkf.c,v 1.124 2007/05/28 15:12:13 naruse Exp $ */
+/* $Id: nkf.c,v 1.127 2007/07/19 20:08:29 naruse Exp $ */
#define NKF_VERSION "2.0.8"
-#define NKF_RELEASE_DATE "2007-05-29"
+#define NKF_RELEASE_DATE "2007-07-20"
#include "config.h"
#include "utf8tbl.h"
#define COPY_RIGHT \
"Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa),2000 S. Kono, COW\n" \
- "Copyright (C) 2002-2006 Kono, Furukawa, Naruse, mastodon"
+ "Copyright (C) 2002-2007 Kono, Furukawa, Naruse, mastodon"
/*
#endif
static int crmode_f = 0; /* CR, NL, CRLF */
+static nkf_char prev_cr = 0;
#ifdef EASYWIN /*Easy Win */
static int end_check;
#endif /*Easy Win */
SEND;
}
}
- if (crmode_f == CR && c1 == NL) crmode_f = CRLF;
- else crmode_f = c1;
+ if (!crmode_f) {
+ if (prev_cr && c1 == NL) crmode_f = CRLF;
+ else crmode_f = c1;
+ }
} else if (c1 == DEL && input_mode == X0208 ) {
/* CP5022x */
c2 = c1;
code_status(c1);
}
while (p->name){
- if (p->score < result->score){
+ if (p->status_func && p->score < result->score){
result = p;
}
++p;
}
- set_iconv(FALSE, result->iconv_func);
+ set_iconv(TRUE, result->iconv_func);
}
return c;
}
-static nkf_char prev_cr = 0;
-
void cr_conv(nkf_char c2, nkf_char c1)
{
if (prev_cr) {