public
Description: ruby lang (www.ruby-lang.org) svn mirror
Homepage: http://svn.ruby-lang.org/repos/ruby/
Clone URL: git://github.com/juretta/ruby.git
Search Repo:
ruby / enc / gb2312.c
100644 14 lines (11 sloc) 0.247 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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")