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] Allow translation of the copyright symbol.


Hi,

Attached is a patch to allow translation of the copyright symbol but
not the rest of the copyright messages.

Bootstrapped on i686-pc-linux-gnu.  OK to apply to mainline?  What
about 3.4?

Kazu Hirata

gcc/
2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>

	* gcc.c (process_command): Allow translation of the copyright
	symbol but not the rest of the copyright message.
	* gcov.c (print_version): Likewise.
	* mips-tfile.c (main): Likewise.

gcc/f/
2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>

	* g77spec.c (lang_specific_driver): Allow translation of the
	copyright symbol but not the rest of the copyright message.

gcc/java/
2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>

	* gjavah.c (version): Allow translation of the copyright
	symbol but not the rest of the copyright message.
	* jcf-dump.c (version): Likewise.
	* jv-scan.c (version): Likewise.

Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.405
diff -u -p -r1.405 gcc.c
--- gcc.c	24 Jan 2004 10:09:48 -0000	1.405
+++ gcc.c	24 Jan 2004 11:38:27 -0000
@@ -3347,8 +3347,8 @@ process_command (int argc, const char *c
 	{
 	  /* translate_options () has turned --version into -fversion.  */
 	  printf (_("%s (GCC) %s\n"), programname, version_string);
-	  fputs ("Copyright (C) 2004 Free Software Foundation, Inc.\n",
-		 stdout);
+	  printf ("Copyright %s 2004 Free Software Foundation, Inc.\n",
+		  _("(C)"));
 	  fputs (_("This is free software; see the source for copying conditions.  There is NO\n\
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"),
 		 stdout);
Index: gcov.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcov.c,v
retrieving revision 1.78
diff -u -p -r1.78 gcov.c
--- gcov.c	21 Dec 2003 14:08:33 -0000	1.78
+++ gcov.c	24 Jan 2004 11:38:28 -0000
@@ -1,7 +1,7 @@
 /* Gcov.c: prepend line execution counts and branch probabilities to a
    source file.
    Copyright (C) 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
-   1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    Contributed by James E. Wilson of Cygnus Support.
    Mangled by Bob Manson of Cygnus Support.
    Mangled further by Nathan Sidwell <nathan@codesourcery.com>
@@ -420,7 +420,8 @@ static void
 print_version (void)
 {
   fnotice (stdout, "gcov (GCC) %s\n", version_string);
-  fnotice (stdout, "Copyright (C) 2003 Free Software Foundation, Inc.\n");
+  fprintf (stdout, "Copyright %s 2004 Free Software Foundation, Inc.\n",
+	   _("(C)"));
   fnotice (stdout,
 	   "This is free software; see the source for copying conditions.\n"
   	   "There is NO warranty; not even for MERCHANTABILITY or \n"
Index: mips-tfile.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mips-tfile.c,v
retrieving revision 1.63
diff -u -p -r1.63 mips-tfile.c
--- mips-tfile.c	24 Jan 2004 10:09:48 -0000	1.63
+++ mips-tfile.c	24 Jan 2004 11:38:30 -0000
@@ -4774,7 +4774,8 @@ main (int argc, char **argv)
   if (version)
     {
       printf (_("mips-tfile (GCC) %s\n"), version_string);
-      fputs ("Copyright (C) 2004 Free Software Foundation, Inc.\n", stdout);
+      printf ("Copyright %s 2004 Free Software Foundation, Inc.\n",
+	      _("(C)"));
       fputs (_("This is free software; see the source for copying conditions.  There is NO\n\
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"),
 	     stdout);
Index: f/g77spec.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/f/g77spec.c,v
retrieving revision 1.45
diff -u -p -r1.45 g77spec.c
--- f/g77spec.c	19 Jul 2003 16:09:38 -0000	1.45
+++ f/g77spec.c	24 Jan 2004 11:38:31 -0000
@@ -1,5 +1,5 @@
 /* Specific flags and argument handling of the Fortran front-end.
-   Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003
+   Copyright (C) 1997, 1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -347,14 +347,14 @@ lang_specific_driver (int *in_argc, cons
 	case OPTION_version:
 	  printf ("\
 GNU Fortran (GCC) %s\n\
-Copyright (C) 2002 Free Software Foundation, Inc.\n\
+Copyright %s 2004 Free Software Foundation, Inc.\n\
 \n\
 GNU Fortran comes with NO WARRANTY, to the extent permitted by law.\n\
 You may redistribute copies of GNU Fortran\n\
 under the terms of the GNU General Public License.\n\
 For more information about these matters, see the file named COPYING\n\
 or type the command `info -f g77 Copying'.\n\
-", version_string);
+", version_string, _("(C)"));
 	  exit (0);
 	  break;
 
Index: java/gjavah.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/gjavah.c,v
retrieving revision 1.111
diff -u -p -r1.111 gjavah.c
--- java/gjavah.c	20 Dec 2003 15:38:27 -0000	1.111
+++ java/gjavah.c	24 Jan 2004 11:38:32 -0000
@@ -1,7 +1,7 @@
 /* Program to write C++-suitable header files from a Java(TM) .class
    file.  This is similar to SUN's javah.
 
-Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003
+Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004
 Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -2298,7 +2298,7 @@ static void
 version (void)
 {
   printf ("gcjh (GCC) %s\n\n", version_string);
-  printf ("Copyright (C) 2002 Free Software Foundation, Inc.\n");
+  printf ("Copyright %s 2004 Free Software Foundation, Inc.\n", _("(C)"));
   printf ("This is free software; see the source for copying conditions.  There is NO\n");
   printf ("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
   exit (0);
Index: java/jcf-dump.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jcf-dump.c,v
retrieving revision 1.57
diff -u -p -r1.57 jcf-dump.c
--- java/jcf-dump.c	20 Dec 2003 15:38:27 -0000	1.57
+++ java/jcf-dump.c	24 Jan 2004 11:38:33 -0000
@@ -1,7 +1,7 @@
 /* Program to dump out a Java(TM) .class file.
    Functionally similar to Sun's javap.
 
-   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
 
 This file is part of GCC.
@@ -896,7 +896,7 @@ static void
 version (void)
 {
   printf ("jcf-dump (GCC) %s\n\n", version_string);
-  printf ("Copyright (C) 2002 Free Software Foundation, Inc.\n");
+  printf ("Copyright %s 2004 Free Software Foundation, Inc.\n", _("(C)"));
   printf ("This is free software; see the source for copying conditions.  There is NO\n");
   printf ("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
   exit (0);
Index: java/jv-scan.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/jv-scan.c,v
retrieving revision 1.40
diff -u -p -r1.40 jv-scan.c
--- java/jv-scan.c	4 May 2003 14:05:15 -0000	1.40
+++ java/jv-scan.c	24 Jan 2004 11:38:33 -0000
@@ -1,5 +1,5 @@
 /* Main for jv-scan
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004
    Free Software Foundation, Inc.
    Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
 
@@ -122,7 +122,7 @@ static void
 version (void)
 {
   printf ("jv-scan (GCC) %s\n\n", version_string);
-  printf ("Copyright (C) 2002 Free Software Foundation, Inc.\n");
+  printf ("Copyright %s 2004 Free Software Foundation, Inc.\n", _("(C)"));
   printf ("This is free software; see the source for copying conditions.  There is NO\n");
   printf ("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
   exit (0);


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