From 8b112c580c854a5fb84b129aafff0e91022fcf6a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 17 Jan 2008 15:17:21 +0000 Subject: [PATCH] * enc/euc_cn.c: split from enc/euc_kr.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ enc/euc_cn.c | 11 +++++++++++ enc/euc_kr.c | 2 -- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 enc/euc_cn.c 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");