1
0
Fork 0
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:
Nobuyoshi Nakada 2019-08-10 01:04:39 +09:00
parent 8d7e0159c0
commit 88db6fa479
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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")