From 486112cbca28f1899525dde697d139b41a35bf29 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 24 Aug 2008 03:03:18 +0000 Subject: * transcode.c (rb_econv_open): return NULL on error. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'transcode.c') diff --git a/transcode.c b/transcode.c index ce3455df0..5e14a358b 100644 --- a/transcode.c +++ b/transcode.c @@ -780,7 +780,7 @@ rb_econv_open(const char *from, const char *to, int flags) ec = rb_econv_open_by_transcoder_entries(num_trans, entries); xfree(entries); if (!ec) - rb_raise(rb_eArgError, "encoding conversion not supported (from %s to %s)", from, to); + return NULL; ec->flags = flags; ec->source_encoding_name = from; -- cgit