From 394d7c7e52adb1f80dfc3d5e7b8321aa0d1d72e0 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 27 Jan 2008 07:43:31 +0000 Subject: * ruby-trunk. * lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/nkf/nkf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c index 3db6003bb..f2647f3d9 100644 --- a/ext/nkf/nkf.c +++ b/ext/nkf/nkf.c @@ -145,6 +145,7 @@ rb_nkf_convert(VALUE obj, VALUE opt, VALUE src) reinit(); StringValue(opt); nkf_split_options(RSTRING_PTR(opt)); + if (!output_encoding) rb_raise(rb_eArgError, "no output encoding given"); incsize = INCSIZE; -- cgit