[w3m-dev 04095] build fix when configure with --enable-messagel10n

WATANABE Katsuyuki <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Message-ID <[email protected]>
$BEOn5$G$9!#(B

Cygwin $B$J$I$N!"(Blibc $B$K(B gettext $B0lB2$r;}$?$J$$4D6-$G!"(B
./configuer --enable-messagel10n=ja $B$7$?$H$-$K(B
$B%S%k%I$K<:GT$7$^$9!#(B
# libc $B$K(B gettext $B$r;}$C$F$$$F$b!"L5BL$J(B gettext() $B$N(B
# $B8F=P$7$,9T$o$l$k$O$:!#(B


 * build fix when configure with --enable-messagel10n=ja


diff -urN -X ../ignore.list w3m-1.932/main.c w3m-1.932-1/main.c
--- w3m-1.932/main.c	2004-07-16 07:14:59.000000000 +0900
+++ w3m-1.932-1/main.c	2004-08-02 23:15:14.000000000 +0900
@@ -384,9 +384,11 @@
 #endif
 #endif
     GC_init();
+#if ENABLE_NLS
     setlocale(LC_ALL, "");
     bindtextdomain(PACKAGE, LOCALEDIR);
     textdomain(PACKAGE);
+#endif
 
 #ifndef HAVE_SYS_ERRLIST
     prepare_sys_errlist();
diff -urN -X ../ignore.list w3m-1.932/menu.c w3m-1.932-1/menu.c
--- w3m-1.932/menu.c	2004-07-16 07:14:59.000000000 +0900
+++ w3m-1.932-1/menu.c	2004-08-02 23:15:14.000000000 +0900
@@ -1717,7 +1717,7 @@
 #endif
 	for (item = MainMenuItem; item->type != MENU_END; item++)
 	    item->label =
-		wc_conv(gettext(item->label), MainMenuCharset,
+		wc_conv(_(item->label), MainMenuCharset,
 			InnerCharset)->ptr;
 	MainMenuEncode = TRUE;
     }
diff -urN -X ../ignore.list w3m-1.932/rc.c w3m-1.932-1/rc.c
--- w3m-1.932/rc.c	2004-07-18 10:09:32.000000000 +0900
+++ w3m-1.932-1/rc.c	2004-08-02 23:15:14.000000000 +0900
@@ -793,7 +793,7 @@
 #ifdef USE_M17N
 	if (!OptionEncode)
 	    cmt =
-		wc_conv(gettext(sections[j].name), OptionCharset,
+		wc_conv(_(sections[j].name), OptionCharset,
 			InnerCharset)->ptr;
 	else
 #endif
@@ -839,7 +839,7 @@
 	    }
 #ifdef USE_M17N
 	    if (!OptionEncode)
-		cmt = wc_conv(gettext(sections[j].params[i].comment),
+		cmt = wc_conv(_(sections[j].params[i].comment),
 			      OptionCharset, InnerCharset)->ptr;
 	    else
 #endif
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.