diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | pack.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Apr 26 16:59:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * pack.c (pack_unpack): now supports CRLF newlines. a patch from + <tommy at tmtm.org>. [ruby-dev:28601] + Tue Apr 25 18:00:05 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/tcltklib.c (delete_slaves): maybe increment the reference @@ -1834,6 +1834,8 @@ pack_unpack(str, fmt) while (s < send) { if (*s == '=') { if (++s == send) break; + if (s+1 < send && *s == '\r' && *(s+1) == '\n') + s++; if (*s != '\n') { if ((c1 = hex2num(*s)) == -1) break; if (++s == send) break; |