summaryrefslogtreecommitdiff
path: root/jni/ruby/enc/gb2312.c
blob: 6fc15735fcee20d819023bbf3d25a719dbe61ff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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_ALIAS("EUC-CN""GB2312")
ENC_ALIAS("eucCN""GB2312")
ENC_REPLICATE("GB12345""GB2312")