View | Details | Raw Unified | Return to bug 99737
Collapse All | Expand All

(-)p5-nkf/Makefile (-1 / +1 lines)
Lines 14-20 Link Here
14
PLIST=		${.CURDIR}/pkg-plist
14
PLIST=		${.CURDIR}/pkg-plist
15
15
16
PERL_CONFIGURE=	yes
16
PERL_CONFIGURE=	yes
17
WRKSRC=		${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//:S/./-/}/NKF.mod
17
WRKSRC=		${WRKDIR}/${PORTNAME}${PORTVERSION:S/.//:S/.//}/NKF.mod
18
PATCHDIR=	${.CURDIR}/files
18
PATCHDIR=	${.CURDIR}/files
19
MAN3=		NKF.3
19
MAN3=		NKF.3
20
20
(-)p5-nkf/files/patch-nkf.c (-43 lines)
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];

Return to bug 99737