OSDN Git Service

2009-09-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Sep 2009 15:08:27 +0000 (15:08 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Sep 2009 15:08:27 +0000 (15:08 +0000)
PR libgfortran/41219
* io/write.c (write_a_char4): Use correct type for crlf constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151653 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/write.c

index 8cc223e..1b2e961 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/41219
+       * io/write.c (write_a_char4): Use correct type for crlf constant.
+
 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.am (libgfortranbegin_la_LINK): New.
index 4956da8..3c16a43 100644 (file)
@@ -293,7 +293,7 @@ write_a_char4 (st_parameter_dt *dtp, const fnode *f, const char *source, int len
      Standard sections 10.6.3 and 9.9 for further information.  */
   if (is_stream_io (dtp))
     {
-      const char crlf[] = "\r\n";
+      const gfc_char4_t crlf[] = {0x000d,0x000a};
       int i, bytes;
       gfc_char4_t *qq;
       bytes = 0;