|
Lines 1-43
Link Here
|
| 1 |
--- ../nkf.c.orig Mon Mar 27 21:46:58 2006 |
|
|
| 2 |
+++ ../nkf.c Sun May 7 22:37:16 2006 |
| 3 |
@@ -3323,9 +3323,9 @@ |
| 4 |
void (*f)PROTO((int c2,int c1)); |
| 5 |
int c; |
| 6 |
{ |
| 7 |
+ int shift = 20; |
| 8 |
const char *hex = "0123456789ABCDEF"; |
| 9 |
c &= 0x00FFFFFF; |
| 10 |
- int shift = 20; |
| 11 |
while(shift >= 0){ |
| 12 |
if(c >= 1<<shift){ |
| 13 |
while(shift >= 0){ |
| 14 |
@@ -3417,6 +3417,7 @@ |
| 15 |
c = unicode_subchar; |
| 16 |
(*oconv)((c>>8)&0xFF, c&0xFF); |
| 17 |
return; |
| 18 |
+#if 0 |
| 19 |
int shift = 16; |
| 20 |
while(shift >= 0){ |
| 21 |
if(c >= 1<<shift){ |
| 22 |
@@ -3429,10 +3430,13 @@ |
| 23 |
} |
| 24 |
} |
| 25 |
return; |
| 26 |
+#endif |
| 27 |
} |
| 28 |
#endif |
| 29 |
|
| 30 |
#ifdef UTF8_OUTPUT_ENABLE |
| 31 |
+extern const unsigned short *const x0212_to_utf8_2bytes[]; |
| 32 |
+ |
| 33 |
int |
| 34 |
e2w_conv(c2, c1) |
| 35 |
int c2, c1; |
| 36 |
@@ -3449,7 +3453,6 @@ |
| 37 |
if(ms_ucs_map_f == UCS_MAP_ASCII&& c2 == 0x8F22 && c1 == 0x43){ |
| 38 |
return 0xA6; |
| 39 |
} |
| 40 |
- extern const unsigned short *const x0212_to_utf8_2bytes[]; |
| 41 |
c2 = (c2&0x7f) - 0x21; |
| 42 |
if (0<=c2 && c2<sizeof_euc_to_utf8_2bytes) |
| 43 |
p = x0212_to_utf8_2bytes[c2]; |