This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] hardcoded name for textdomain in gcc/intl.c


This is a no-change, as long as PACKAGE doesn't get redefined.
Ok to checkin?

2003-05-16  Matthias Klose  <doko@debian.org>

	* gcc/Makefile.in (intl.o): Pass PACKAGE.
	* gcc/intl.c: Use it.

diff -ur gcc-20030118/gcc/Makefile.in src/gcc/Makefile.in
--- gcc/Makefile.in~	2003-01-09 19:30:05.000000000 +0100
+++ gcc/Makefile.in	2003-01-20 01:21:02.000000000 +0100
@@ -2164,6 +2164,7 @@
 intl.o: intl.c $(CONFIG_H) system.h intl.h Makefile
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 	  -DLOCALEDIR=\"$(localedir)\" \
+	  -DPACKAGE=\"$(PACKAGE)\" \
 	  -c $(srcdir)/intl.c $(OUTPUT_OPTION)
 
 $(top_builddir)/intl/libintl.a: intl.all
--- gcc/intl.c~	2002-03-02 00:38:00.000000000 +0100
+++ gcc/intl.c	2003-04-28 13:13:22.000000000 +0200
@@ -39,8 +39,8 @@
   setlocale (LC_ALL, "");
 #endif
 
-  (void) bindtextdomain ("gcc", LOCALEDIR);
-  (void) textdomain ("gcc");
+  (void) bindtextdomain (PACKAGE, LOCALEDIR);
+  (void) textdomain (PACKAGE);
 }
 
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]