repo.or.cz
/
ruby-svn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git]
/
enc
/
gb2312.c
blob
6fc15735fcee20d819023bbf3d25a719dbe61ff0
1
#include <ruby/ruby.h>
2
#include <ruby/encoding.h>
3
#include
"regenc.h"
4
5
void
6
Init_gb2312
(
void
)
7
{
8
rb_enc_register
(
"GB2312"
,
rb_enc_find
(
"EUC-KR"
));
9
}
10
11
ENC_ALIAS
(
"EUC-CN"
,
"GB2312"
)
12
ENC_ALIAS
(
"eucCN"
,
"GB2312"
)
13
ENC_REPLICATE
(
"GB12345"
,
"GB2312"
)