Bug 421131

Summary: Bug in es_ES po translation
Product: Red Hat Enterprise Linux 4 Reporter: Juan Ramon Martin <jrmartin>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 4.8   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0753 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 20:02:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
gcc34-rh421131.patch none

Description Juan Ramon Martin 2007-12-12 09:43:01 UTC
Description of problem:
Due to a bug in es_* po translation for gcc3.4, compilation fails with an
unexpected error if locale is set to es_ES@euro (or any "es_" locale).
Compilation goes OK if locale is changed to en_US.

Version-Release number of selected component (if applicable):
gcc 3.4.6 20060404 (Red Hat 3.4.6-8)

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jakub Jelinek 2007-12-12 09:55:35 UTC
That's very vague.  Compilation of what exact source fails, what options were
used, what unexpected error do you get?

Comment 2 Juan Ramon Martin 2007-12-12 10:06:16 UTC
Sorry, a minimal test case:
--- test.c ---
#include <stdio.h>  
  
int main () {  
  printf ("%+x", 0);  
}  
---------------

$gcc -c test.c -O -Wall
test.c: In function `main':
test.c:4: aviso: se usó 
Error interno del compilador: Error al reportar rutinas reentradas.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc4h0sl7.out file, please attach this to
your bugreport.

If I set locale to en_US:
$ export LC_ALL=en_US
$ gcc -c test.c -O -Wall
test.c: In function `main':
test.c:4: warning: `+' flag used with `%x' printf format
test.c:5: warning: control reaches end of non-void function


Comment 3 Jakub Jelinek 2007-12-12 10:39:54 UTC
Created attachment 285661 [details]
gcc34-rh421131.patch

Thanks, gcc 3.4 didn't support %N$ style arguments for internal diagnostic
(I've only added support for that in 4.1+), but the translators clearly didn't
know about that.

Comment 4 RHEL Program Management 2007-12-12 10:44:50 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 10 errata-xmlrpc 2008-07-24 20:02:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0753.html