1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* encoding.c (rb_enc_init): don't alias iso-8859-1 to ascii.

* ascii.c (OnigEncodingASCII): change the name US-ASCII to ASCII-8BIT.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-10-10 06:50:33 +00:00
parent 8c19ecbeeb
commit ee624f97ac
3 changed files with 11 additions and 5 deletions

View file

@ -75,10 +75,10 @@ rb_enc_init(void)
ENC_REGISTER(ONIG_ENCODING_SJIS);
ENC_REGISTER(ONIG_ENCODING_UTF8);
#undef ENC_REGISTER
rb_enc_alias("ascii", "us-ascii");
rb_enc_alias("binary", "us-ascii");
rb_enc_alias("iso-8859-1", "us-ascii");
rb_enc_alias("sjis", "shift_jis");
rb_enc_alias("ascii", rb_enc_name(ONIG_ENCODING_ASCII));
rb_enc_alias("binary", rb_enc_name(ONIG_ENCODING_ASCII));
rb_enc_alias("us-ascii", rb_enc_name(ONIG_ENCODING_ASCII)); /* will be defined separately in future. */
rb_enc_alias("sjis", rb_enc_name(ONIG_ENCODING_SJIS));
}
rb_encoding *