mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use ENC_REPLICATE to copy an encoding
This commit is contained in:
parent
8d7e0159c0
commit
88db6fa479
1 changed files with 1 additions and 8 deletions
|
@ -1,13 +1,6 @@
|
|||
#include <ruby/ruby.h>
|
||||
#include <ruby/encoding.h>
|
||||
#include "regenc.h"
|
||||
|
||||
void
|
||||
Init_gb2312(void)
|
||||
{
|
||||
rb_enc_register("GB2312", rb_enc_find("EUC-KR"));
|
||||
}
|
||||
|
||||
ENC_REPLICATE("GB2312", "EUC-KR")
|
||||
ENC_ALIAS("EUC-CN", "GB2312")
|
||||
ENC_ALIAS("eucCN", "GB2312")
|
||||
ENC_REPLICATE("GB12345", "GB2312")
|
||||
|
|
Loading…
Reference in a new issue