This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/11166] New: Incorrect dependencies file under es_ES
- From: "fherrera at onirica dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2003 01:20:34 -0000
- Subject: [Bug preprocessor/11166] New: Incorrect dependencies file under es_ES
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11166
Summary: Incorrect dependencies file under es_ES
Product: gcc
Version: 3.2.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fherrera@onirica.com
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i386
GCC host triplet: i386
GCC target triplet: i386
When running cpp0 from orbit-idl-2 to generate dep file, under es_ES locale an
incorrect dep file is generated. Under LC_ALL="" or C, there is no problem.
Here is an example:
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/cpp0 -lang-c -I- -D__GNUC__=3
-D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__
-Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__
-D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__
-D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__
-D__tune_i386__ -D__ORBIT_IDL__ poatest.idl
under es_ES generates:
poatest-stubs.c poatest-skels.c poatest-common.c poatest.h poatest-skelimpl.c
poatest-imodule.c : \ poatest.idl \
<interno> \
<línea de orden> \
poatest.idl
where <interno> and <linea de orden> is wrong.
Under C locale:
poatest-stubs.c poatest-skels.c poatest-common.c poatest.h poatest-skelimpl.c
poatest-imodule.c : \ poatest.idl
which is the expected result.
Looking at the code cppint.c shows:
_cpp_do_file_change (pfile, LC_RENAME, _("<built-in>"), 1, 0);
init_builtins (pfile);
_cpp_do_file_change (pfile, LC_RENAME, _("<command line>"), 1, 0);
I'm not sure why these strings are marked for translation, but I think here is
the problem.