ret = unicode_to_jis_common2(c1, c0, ppp[c2 - 0xE0], sizeof_utf8_to_euc_C2, p2, p1);
}else return -1;
#ifdef SHIFTJIS_CP932
- if (!ret && !cp932inv_f && is_eucg3(*p2)) {
- nkf_char s2, s1;
- if (e2s_conv(*p2, *p1, &s2, &s1) == 0) {
- s2e_conv(s2, s1, p2, p1);
- }else{
- ret = 1;
+ if (!ret&& is_eucg3(*p2)) {
+ if (cp932inv_f) {
+ if (encode_fallback) ret = 1;
+ }
+ else {
+ nkf_char s2, s1;
+ if (e2s_conv(*p2, *p1, &s2, &s1) == 0) {
+ s2e_conv(s2, s1, p2, p1);
+ }else{
+ ret = 1;
+ }
}
}
#endif
"\x1b\x1b\$B\$\x22\x1b(B",
"\x1b\xe3\x81\x82");
+printf "%-40s", "[nkf-bug:36572]";
+ &test("$nkf -sW --fb-html",
+ "\xe6\xbf\xb9\xe4\xb8\x8a",
+ "濹\x8f\xe3");
+
if (!NKF) {
printf "%-40s", "Guess NL";
&command_tests(