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]

Unnecessay translation in cppfiles.c


cppfiles.c has in stack_include_files:

   /* Generate the call back.  */
   filename = inc->name;
   if (*filename == '\0')
    filename = _("<stdin>");

IMO it's not necessary to translate this. stdin should be understood by
every programmer ;-)

If you agree, here's a small patch to change it. OK to apply?

2001-12-20  Philipp Thomas  <pthomas@suse.de>
	* cppfiles.c (stack_include_file): Don't mark <stdin> for
	translation.

Index: cppfiles.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cppfiles.c,v
retrieving revision 1.139
diff -u -p -r1.139 cppfiles.c
--- cppfiles.c	2001/12/12 12:42:03	1.139
+++ cppfiles.c	2001/12/20 15:00:08
@@ -331,7 +331,7 @@ stack_include_file (pfile, inc)
   /* Generate the call back.  */
   filename = inc->name;
   if (*filename == '\0')
-    filename = _("<stdin>");
+    filename = "<stdin>";
   _cpp_do_file_change (pfile, LC_ENTER, filename, 1, sysp);
 
   return true;

-- 
Philipp Thomas <pthomas@suse.de>
Development, SuSE GmbH, Deutscherrnstr. 15-19, D-90429 Nuremberg, Germany


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