/*
* Copyright (c) 2008-2009, Paul Mattes.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the names of Paul Mattes nor the names of his contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY PAUL MATTES "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL PAUL MATTES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* unicode.c
* A Windows console-based 3270 Terminal Emulator
* DBCS EBCDIC/Unicode translation functions
*/
#include "globals.h"
#include <stdio.h>
#if !defined(_WIN32) /*[*/
#include <strings.h>
#endif /*]*/
#include "3270ds.h"
#include "unicodec.h"
#include "unicode_dbcsc.h"
#include "utf8c.h"
/*
* DBCS EBCDIC-to-Unicode translation tables.
*/
#if defined(X3270_DBCS) /*[*/
typedef struct {
char *name;
const char *codepage;
const char *display_charset;
const char *u2ebc[512]; /* Unicode to EBCDIC vectors */
const char *ebc2u[512]; /* EBCDIC to Unicode vectors */
} uni16_t;
static uni16_t uni16[] = {
{ "cp930", "0x080b012c" /* 2059, 300 */, "jisx0208.1983-0,iso10646-1",
/* Unicode to EBCDIC DBCS translation table for ibm-300_P110-1997 */ {
/* 0000 */ NULL,
/* 0080 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x42\x6a\x44\x6a\x44\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\xed\x44\x4b\x00\x00\x00\x00\x44\x50\x00\x00\x43\x79\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x7a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x7b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
/* 0100 */ NULL,
/* 0180 */ NULL,
/* 0200 */ NULL,
/* 0280 */ NULL,
/* 0300 */ NULL,
/* 0380 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x61\x41\x62\x41\x63\x41\x64\x41\x65\x41\x66\x41\x67\x41\x68\x41\x69\x41\x6a\x41\x6b\x41\x6c\x41\x6d\x41\x6e\x41\x6f\x41\x70\x41\x71\x00\x00\x41\x72\x41\x73\x41\x74\x41\x75\x41\x76\x41\x77\x41\x78\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\x41\x41\x42\x41\x43\x41\x44\x41\x45\x41\x46\x41\x47\x41\x48\x41\x49\x41\x4a\x41\x4b\x41\x4c\x41\x4d\x41\x4e\x41\x4f\x41\x50\x41\x51\x00\x00\x41\x52\x41\x53\x41\x54\x41\x55\x41\x56\x41\x57\x41\x58\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
/* 0400 */ "\x00\x00\x41\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x41\xc0\x41\xc1\x41\xc2\x41\xc3\x41\xc4\x41\xc5\x41\xc7\x41\xc8\x41\xc9\x41\xca\x41\xcb\x41\xcc\x41\xcd\x41\xce\x41\xcf\x41\xd0\x41\xd1\x41\xd2\x41\xd3\x41\xd4\x41\xd5\x41\xd6\x41\xd7\x41\xd8\x41\xd9\x41\xda\x41\xdb\x41\xdc\x41\xdd\x41\xde\x41\xdf\x41\xe0\x41\x80\x41\x81\x41\x82\x41\x83\x41\x84\x41\x85\x41\x87\x41\x88\x41\x89\x41\x8a\x41\x8b\x41\x8c\x41\x8d\x41\x8e\x41\x8f\x41\x90\x41\x91\x41\x92\x41\x93\x41\x94\x41\x95\x41\x96\x41\x97\x41\x98\x41\x99\x41\x9a\x41\x9b\x41\x9c\x41\x9d\x41\x9e\x41\x9f\x41\xa0\x00\x00\x41\x86\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
/* 0480 */ NULL,
/* 0500 */ NULL,
/* 0580 */ NULL,
/* 0600 */ NULL,
/* 0680 */ NULL,
/* 0700 */ NULL,
/* 0780 */ NULL,
/* 0800 */ NULL,
/* 0880 */ NULL,
/* 0900 */ NULL,
/* 0980 */ NULL,
/* 0a00 */ NULL,
/* 0a80 */ NULL,
/* 0b00 */ NULL,
/* 0b80 */ NULL,
/* 0c00 */ NULL,
/* 0c80 */ NULL,
/* 0d00 */ NULL,
/* 0d80 */ NULL,
/* 0e00 */ NULL,
/* 0e80 */ NULL,
/* 0f00 */ NULL,
/* 0f80 */ NULL,
/* 1000 */ NULL,
/* 1080 */ NULL,
/* 1100 */ NULL,
/* 1180 */ NULL,
/* 1200 */ NULL,
/* 1280 */ NULL,
/* 1300 */ NULL,
/* 1380 */ NULL,
/* 1400 */ NULL,
/* 1480 */ NULL,
/* 1500 */ NULL,
/* 1580 */ NULL,
/* 1600 */ NULL,
/* 1680 */ NULL,
/* 1700 */ NULL,
/* 1780 */ NULL,
/* 1800 */ NULL,
/* 1880 */ NULL,
/* 1900 */ NULL,
/* 1980 */ NULL,
/* 1a00 */ NULL,
/* 1a80 */ NULL,
/* 1b00 */ NULL,
/* 1b80 */ NULL,
/* 1c00 */ NULL,
/* 1c80 */ NULL,
/* 1d00 */ NULL,
/* 1d80 */ NULL,
/* 1e00 */ NULL,
/* 1e80 */ NULL,
/* 1f00 */ NULL,
/* 1f80 */ NULL,
/* 2000 */ "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x5a\x00\x00\x00\x00\x00\x00\x44\x4a\x00\x00\x44\x7c\x00\x00\x44\x61\x44\x71\x00\x00\x00\x00\x44\x62\x44\x72\x00\x00\x00\x00\x43\x77\x43\x78\x00\x00\x00\x00\x00\x00\x44\x7e\x44\x7f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x43\x73\x00\x00\x44\xee\x44\xef\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x6b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00",
/* 2080 */ NULL,
/* 2100 */ "\x00\x00\x00\x00\x00\x00\x44\x4e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x6e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x44\x6f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
没有合适的资源?快使用搜索试试~ 我知道了~
x3270 登陆mainframe工具
共980个文件
h:407个
c:285个
html:94个
3星 · 超过75%的资源 需积分: 12 23 下载量 69 浏览量
2011-07-07
00:30:12
上传
评论
收藏 9.77MB ZIP 举报
温馨提示
不需要安装 ibm personal comm ,用这个简单易用 绿色的
资源推荐
资源详情
资源评论
收起资源包目录
x3270 登陆mainframe工具 (980个子文件)
Makefile.aux 3KB
s3270_glue.bash 6KB
cms_logon.bash 4KB
peer_script.bash 2KB
child_script.bash 2KB
runc3270.bat 42B
3270gt32.bdf 109KB
3270gt32b.bdf 109KB
3270.bdf 76KB
3270b.bdf 76KB
3270gt24b.bdf 75KB
3270gt24.bdf 75KB
3270-20b.bdf 68KB
3270-20.bdf 68KB
3270gr.bdf 66KB
3270gt16b.bdf 59KB
3270gt16.bdf 59KB
3270gt12b.bdf 45KB
3270gt12.bdf 45KB
3270-12b.bdf 44KB
3270-12.bdf 43KB
3270gt8.bdf 40KB
3270h.bdf 37KB
keypad.bm 7KB
x3270.bm 2KB
wait.bm 2KB
ky.bm 524B
unlocked.bm 278B
locked.bm 272B
no_diamond.bm 232B
diamond.bm 223B
no_dot.bm 220B
arrow.bm 217B
null.bm 214B
dot.bm 211B
x3270-icon2.bmp 12KB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
unicode_dbcs.c 1.79MB
display8.c 881KB
screen.c 138KB
kybd.c 101KB
kybd.c 101KB
kybd.c 101KB
kybd.c 101KB
kybd.c 101KB
kybd.c 101KB
macros.c 94KB
macros.c 94KB
macros.c 94KB
macros.c 94KB
macros.c 94KB
telnet.c 87KB
telnet.c 87KB
telnet.c 87KB
telnet.c 87KB
telnet.c 87KB
telnet.c 87KB
unicode.c 85KB
unicode.c 85KB
unicode.c 85KB
unicode.c 85KB
unicode.c 85KB
unicode.c 85KB
unicode.c 85KB
unicode.c 85KB
ctlr.c 70KB
ctlr.c 70KB
ctlr.c 70KB
ctlr.c 70KB
ctlr.c 70KB
ctlr.c 70KB
keysym2ucs.c 66KB
menubar.c 61KB
screen.c 60KB
ansi.c 59KB
ansi.c 59KB
ansi.c 59KB
ansi.c 59KB
ansi.c 59KB
ansi.c 59KB
ft.c 58KB
ft.c 58KB
ft.c 58KB
ft.c 58KB
ft.c 58KB
ft.c 58KB
wizard.c 54KB
screen.c 50KB
telnet.c 47KB
telnet.c 47KB
ctlr.c 45KB
ctlr.c 45KB
CmplxMenu.c 45KB
select.c 41KB
共 980 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
- hkhaha2014-04-01与P-COM 类似,但是没有哪么强大
- friendlywolf2012-12-03简介纯粹误导观众,只有字符界面,怎么登陆主机都没写,跟 ibm personal comm 完全没可比性,提供了一些源码,不过我没空看。
spender
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功