diff --git a/ChangeLog b/ChangeLog index 31e10903cc..52ad98ad7c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Sep 8 02:04:25 2008 Tanaka Akira + + * include/ruby/encoding.h (rb_econv_set_replacement): renamed from + rb_econv_set_replacemenet. + + * transcode.c: follow the renaming. + Mon Sep 8 01:10:41 2008 Tanaka Akira * tool/transcode-tblgen.rb (transcode_tblgen): log message refined. diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index eac7326a6d..0519340c1f 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -222,7 +222,7 @@ rb_econv_result_t rb_econv_convert(rb_econv_t *ec, void rb_econv_close(rb_econv_t *ec); /* result: 0:success -1:failure */ -int rb_econv_set_replacemenet(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname); +int rb_econv_set_replacement(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname); VALUE rb_econv_open_exc(const char *senc, const char *denc, int ecflags); diff --git a/transcode.c b/transcode.c index cd7be00e12..49e8ed3856 100644 --- a/transcode.c +++ b/transcode.c @@ -1980,7 +1980,7 @@ make_replacement(rb_econv_t *ec) } int -rb_econv_set_replacemenet(rb_econv_t *ec, +rb_econv_set_replacement(rb_econv_t *ec, const unsigned char *str, size_t len, const char *encname) { unsigned char *str2; @@ -2260,7 +2260,7 @@ rb_econv_open_opts(const char *source_encoding, const char *destination_encoding int ret; rb_encoding *enc = rb_enc_get(replacement); - ret = rb_econv_set_replacemenet(ec, + ret = rb_econv_set_replacement(ec, (const unsigned char *)RSTRING_PTR(replacement), RSTRING_LEN(replacement), enc->name); @@ -3357,7 +3357,7 @@ econv_set_replacement(VALUE self, VALUE arg) StringValue(string); enc = rb_enc_get(string); - ret = rb_econv_set_replacemenet(ec, + ret = rb_econv_set_replacement(ec, (const unsigned char *)RSTRING_PTR(string), RSTRING_LEN(string), enc->name);