From 3a61037bc8ece561385b752d21e75e4f755a211e Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Wed, 27 Jan 1999 08:08:39 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'v1_3_1_990127'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_3_1_990127@381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'parse.y') diff --git a/parse.y b/parse.y index a4142bbe20..71ca654305 100644 --- a/parse.y +++ b/parse.y @@ -6,7 +6,7 @@ $Date$ created at: Fri May 28 18:02:42 JST 1993 - Copyright (C) 1993-1998 Yukihiro Matsumoto + Copyright (C) 1993-1999 Yukihiro Matsumoto ************************************************/ @@ -1745,6 +1745,10 @@ normalize_newline(line) RSTRING(line)->ptr[RSTRING(line)->len-2] = '\n'; RSTRING(line)->len--; } +#ifdef __MACOS__ + else if (RSTRING(line)->ptr[RSTRING(line)->len-1] == '\r') + RSTRING(line)->ptr[RSTRING(line)->len-1] = '\n'; +#endif } static int -- cgit v1.2.3