mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby.c (set_internal_encoding_once): fix typo in error string
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cc7ff9d2f9
commit
2228f91851
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Nov 12 07:16:01 2008 David Flanagan <david@think32>
|
||||
|
||||
* ruby.c (set_internal_encoding_once): fix typo in error string
|
||||
|
||||
Wed Nov 12 03:30:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/intern.h (rb_{external,locale}_str_new_cstr): optimized
|
||||
|
|
2
ruby.c
2
ruby.c
|
@ -632,7 +632,7 @@ set_internal_encoding_once(struct cmdline_options *opt, const char *e, int elen)
|
|||
if (opt->intern.enc.name &&
|
||||
rb_funcall(ename, rb_intern("casecmp"), 1, opt->intern.enc.name) != INT2FIX(0)) {
|
||||
rb_raise(rb_eRuntimeError,
|
||||
"default_intenal already set to %s", RSTRING_PTR(opt->intern.enc.name));
|
||||
"default_internal already set to %s", RSTRING_PTR(opt->intern.enc.name));
|
||||
}
|
||||
opt->intern.enc.name = ename;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue