------- 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 <[EMAIL PROTECTED]>
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