This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32814] New: backslash zero no longer writes null in string
- From: "jhettmer at doprad dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2007 22:42:53 -0000
- Subject: [Bug fortran/32814] New: backslash zero no longer writes null in string
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Related to resolved bug 30278. The handling of backslash has fundamentally
changed since 3.2.2 and earlier. Specifically it USED to allow inserting a
null at the end of a string (CRITICAL for communicating with C) and I see now
that there is a list of honored excapes and null (\0) seems not to be one of
them. The still large Fortran part of our application (55000 lines) contains
nearly a thousand instances of \0 in strings needed by newer C functions and
appending //char(0) everywhere is decidedly ugly as well as expensive. I
believe this should be considered a bug.
--
Summary: backslash zero no longer writes null in string
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jhettmer at doprad dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32814