mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
deeade6f3e
new Chinese GBK transcoding (from Yoshihiro Kambayashi) * test/ruby/test_transcode.rb: added tests for the above (from Yoshihiro Kambayashi) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
16 lines
312 B
Text
16 lines
312 B
Text
#include "transcode_data.h"
|
|
|
|
<%
|
|
require "gbk-tbl"
|
|
|
|
transcode_tblgen "GBK", "UTF-8", [["{00-7f}", :nomap], *GBK_TO_UCS_TBL]
|
|
transcode_tblgen "UTF-8", "GBK", [["{00-7f}", :nomap], *GBK_TO_UCS_TBL.map {|a,b| [b,a] }]
|
|
%>
|
|
|
|
<%= transcode_generated_code %>
|
|
|
|
void
|
|
Init_gbk(void)
|
|
{
|
|
<%= transcode_register_code %>
|
|
}
|