diff --git a/ChangeLog b/ChangeLog index cbfbd4a711..297706eb66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 18 00:17:19 2008 Nobuyoshi Nakada + + * enc/euc_cn.c: split from enc/euc_kr.c. + Fri Jan 18 00:03:54 2008 Nobuyoshi Nakada * ext/stringio/stringio.c (strio_init): use default external encoding diff --git a/enc/euc_cn.c b/enc/euc_cn.c new file mode 100644 index 0000000000..b6494f91ac --- /dev/null +++ b/enc/euc_cn.c @@ -0,0 +1,11 @@ +#include +#include +#include "regenc.h" + +void +Init_euc_cn(void) +{ + rb_enc_register("EUC-CN", rb_enc_find("EUC-KR")); +} + +ENC_ALIAS("eucCN", "EUC-CN"); diff --git a/enc/euc_kr.c b/enc/euc_kr.c index 09869e6b5a..b3cdcd9da3 100644 --- a/enc/euc_kr.c +++ b/enc/euc_kr.c @@ -137,6 +137,4 @@ OnigEncodingDefine(euc_kr, EUC_KR) = { euckr_is_allowed_reverse_match }; ENC_ALIAS("eucKR", "EUC-KR"); -ENC_REPLICATE("EUC-CN", "EUC-KR"); -ENC_ALIAS("eucCN", "EUC-CN"); ENC_REPLICATE("CP949", "EUC-KR");