From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9216 invoked by alias); 1 Feb 2008 14:23:39 -0000 Received: (qmail 9068 invoked by uid 48); 1 Feb 2008 14:22:54 -0000 Date: Fri, 01 Feb 2008 14:23:00 -0000 Message-ID: <20080201142254.9066.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/34729] Localization of run-time error messages, written into the executable In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fxcoudert at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg00055.txt.bz2 ------- Comment #2 from fxcoudert at gcc dot gnu dot org 2008-02-01 14:22 ------- Created an attachment (id=15073) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15073&action=view) Patch I don't think it's a regression, but it certainly is a annoying bug for people who have a non-english locale. As it's really a one-line patch (well, I've created a new function and renamed it everywhere, so the diff if big, but the patch is to use strlen() on the translated string), maybe it would be good to have it in 4.3 nonetheless. I'll let active maintainers decide. Here's the ChangeLog that goes with the patch: 2008-02-01 Francois-Xavier Coudert PR fortran/34729 * trans-const.c (gfc_build_string_const): Don't call gettext. (gfc_build_localized_string_const): New function. * trans-const.h (gfc_build_localized_string_const): New prototype. * trans.c (gfc_trans_runtime_check): Use gfc_build_localized_string_const instead of gfc_build_string_const. (gfc_call_malloc): Likewise. (gfc_allocate_with_status): Likewise. (gfc_allocate_array_with_status): Likewise. (gfc_deallocate_with_status): Likewise. (gfc_call_realloc): Likewise. * trans-io.c (gfc_trans_io_runtime_check): Likewise. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |fxcoudert at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34729