This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34729] Localization of run-time error messages, written into the executable
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Feb 2008 14:22:54 -0000
- Subject: [Bug fortran/34729] Localization of run-time error messages, written into the executable
- References: <bug-34729-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 <fxcoudert@gcc.gnu.org>
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