diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 10 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Jan 21 17:34:41 2008 Akinori MUSHA <knu@iDaemons.org> + + * io.c (rb_io_mode_flags, rb_io_mode_modenum): Ignore encoding + options for forward compatibility. + Mon Jan 21 12:50:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c, gc.c (setjmp): sigsetjmp is a macro on cygwin. @@ -2671,11 +2671,16 @@ rb_io_mode_flags(mode) case '+': flags |= FMODE_READWRITE; break; + case ':': + /* forward compatibility */ + rb_warning("encoding options not supported in 1.8: %s", mode); + goto end; default: goto error; } } + end: return flags; } @@ -2744,11 +2749,16 @@ rb_io_mode_modenum(mode) case '+': flags = (flags & ~O_ACCMODE) | O_RDWR; break; + case ':': + /* forward compatibility */ + rb_warning("encoding options not supported in 1.8: %s", mode); + goto end; default: goto error; } } + end: return flags; } |