зеркало из https://github.com/github/ruby.git
miniinit.c: built-in encoding aliases
* miniinit.c (Init_enc): add some common aliases of built-in encodings. [ruby-core:72481] [Bug #11872] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8c327b7f3a
Коммит
919462710b
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 26 11:26:38 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* miniinit.c (Init_enc): add some common aliases of built-in
|
||||
encodings. [ruby-core:72481] [Bug #11872]
|
||||
|
||||
Sat Dec 26 01:24:40 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in, version.h (RUBY_PROGRAM_VERSION): extract version
|
||||
|
|
|
@ -36,11 +36,14 @@ Init_enc_set_filesystem_encoding(void)
|
|||
return rb_enc_to_index(rb_default_external_encoding());
|
||||
}
|
||||
|
||||
void rb_encdb_declare(const char *name);
|
||||
int rb_encdb_alias(const char *alias, const char *orig);
|
||||
void
|
||||
Init_enc(void)
|
||||
{
|
||||
void rb_encdb_declare(const char *name);
|
||||
rb_encdb_declare("ASCII-8BIT");
|
||||
rb_encdb_declare("US-ASCII");
|
||||
rb_encdb_declare("UTF-8");
|
||||
rb_encdb_alias("BINARY", "ASCII-8BIT");
|
||||
rb_encdb_alias("ASCII", "US-ASCII");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче