浏览代码

Include copysym.h.
(main): Use copyright_symbol to translate copyright notice,
instead of gettext.

Paul Eggert 23 年之前
父节点
当前提交
135a24714f
共有 1 个文件被更改,包括 9 次插入17 次删除
  1. 9 17
      src/rmt.c

+ 9 - 17
src/rmt.c

@@ -1,6 +1,6 @@
 /* Remote connection server.
 /* Remote connection server.
 
 
-   Copyright 1994, 1995, 1996, 1997, 1999, 2000, 2001 Free Software
+   Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001 Free Software
    Foundation, Inc.
    Foundation, Inc.
 
 
    This program is free software; you can redistribute it and/or modify it
    This program is free software; you can redistribute it and/or modify it
@@ -32,6 +32,7 @@
    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  */
    MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  */
 
 
 #include "system.h"
 #include "system.h"
+#include <copysym.h>
 #include <localedir.h>
 #include <localedir.h>
 #include <safe-read.h>
 #include <safe-read.h>
 #include <full-write.h>
 #include <full-write.h>
@@ -292,19 +293,16 @@ main (int argc, char *const *argv)
       usage (EXIT_SUCCESS);
       usage (EXIT_SUCCESS);
       
       
     case 'v':
     case 'v':
-      printf ("rmt (GNU %s) %s\n", PACKAGE, VERSION);
-
-      /* Note to translator: Please translate "Copyright " to "©"
-	 (C-in-a-circle) if available in the translation's character
-	 set and encoding.  */
-      printf (_("Copyright %d Free Software Foundation, Inc."), 2001);
-      printf ("\n");
-
-      puts (_("\
+      {
+	char buf[MB_LEN_MAX + 1];
+	printf ("rmt (GNU %s) %s\n", PACKAGE, VERSION);
+	printf ("Copyright %s 2001 Free Software Foundation, Inc.\n",
+		copyright_symbol (buf, sizeof buf));
+	puts (_("\
 This program comes with NO WARRANTY, to the extent permitted by law.\n\
 This program comes with NO WARRANTY, to the extent permitted by law.\n\
 You may redistribute it under the terms of the GNU General Public License;\n\
 You may redistribute it under the terms of the GNU General Public License;\n\
 see the file named COPYING for details."));
 see the file named COPYING for details."));
-
+      }
       return EXIT_SUCCESS;
       return EXIT_SUCCESS;
 
 
     case -1:
     case -1:
@@ -578,9 +576,3 @@ ioerror:
   report_numbered_error (errno);
   report_numbered_error (errno);
   goto top;
   goto top;
 }
 }
-
-/*
-  Local Variables:
-  coding: iso-latin-1
-  End:
-*/