Commit 77dacacb2cfe3d4bf99b2ce9be8a564e4f9d7f53
1 parent
a69adbf7
Exists in
master
and in
5 other branches
Trabalhando nas tabelas de conversão de charset
Showing
2 changed files
with
15 additions
and
11 deletions
Show diff stats
src/include/lib3270/session.h
@@ -151,13 +151,14 @@ | @@ -151,13 +151,14 @@ | ||
151 | // Translation tables | 151 | // Translation tables |
152 | unsigned short ebc2asc[256]; | 152 | unsigned short ebc2asc[256]; |
153 | unsigned short asc2ebc[256]; | 153 | unsigned short asc2ebc[256]; |
154 | - unsigned short ebc2cg[256]; | ||
155 | - unsigned short cg2ebc[256]; | ||
156 | unsigned short asc2ft[256]; | 154 | unsigned short asc2ft[256]; |
157 | unsigned short ft2asc[256]; | 155 | unsigned short ft2asc[256]; |
158 | unsigned short asc2uc[256]; | 156 | unsigned short asc2uc[256]; |
159 | - unsigned short asc2cg[256]; | ||
160 | - unsigned short cg2asc[256]; | 157 | + |
158 | +// unsigned short ebc2cg[256]; | ||
159 | +// unsigned short cg2ebc[256]; | ||
160 | +// unsigned short asc2cg[256]; | ||
161 | +// unsigned short cg2asc[256]; | ||
161 | 162 | ||
162 | } charset; | 163 | } charset; |
163 | 164 |
src/lib3270/tables.c
@@ -450,13 +450,14 @@ unsigned short ebc2asc7[256]; | @@ -450,13 +450,14 @@ unsigned short ebc2asc7[256]; | ||
450 | LIB3270_INTERNAL void initialize_tables(H3270 *hSession) | 450 | LIB3270_INTERNAL void initialize_tables(H3270 *hSession) |
451 | { | 451 | { |
452 | /* Go to defaults first. */ | 452 | /* Go to defaults first. */ |
453 | - memcpy(hSession->charset.ebc2cg, ebc2cg0, sizeof(hSession->charset.ebc2cg)); | ||
454 | - memcpy(hSession->charset.cg2ebc, cg2ebc0, sizeof(hSession->charset.cg2ebc)); | ||
455 | memcpy(hSession->charset.ebc2asc, ebc2asc0, sizeof(hSession->charset.ebc2asc)); | 453 | memcpy(hSession->charset.ebc2asc, ebc2asc0, sizeof(hSession->charset.ebc2asc)); |
456 | memcpy(hSession->charset.asc2ebc, asc2ebc0, sizeof(hSession->charset.asc2ebc)); | 454 | memcpy(hSession->charset.asc2ebc, asc2ebc0, sizeof(hSession->charset.asc2ebc)); |
457 | memcpy(hSession->charset.asc2uc, asc2uc, sizeof(hSession->charset.asc2uc)); | 455 | memcpy(hSession->charset.asc2uc, asc2uc, sizeof(hSession->charset.asc2uc)); |
458 | - memcpy(hSession->charset.asc2cg, asc2cg, sizeof(hSession->charset.asc2cg)); | ||
459 | - memcpy(hSession->charset.cg2asc, cg2asc, sizeof(hSession->charset.cg2asc)); | 456 | + |
457 | +// memcpy(hSession->charset.ebc2cg, ebc2cg0, sizeof(hSession->charset.ebc2cg)); | ||
458 | +// memcpy(hSession->charset.cg2ebc, cg2ebc0, sizeof(hSession->charset.cg2ebc)); | ||
459 | +// memcpy(hSession->charset.asc2cg, asc2cg, sizeof(hSession->charset.asc2cg)); | ||
460 | +// memcpy(hSession->charset.cg2asc, cg2asc, sizeof(hSession->charset.cg2asc)); | ||
460 | 461 | ||
461 | #ifdef EXTENDED_TABLES | 462 | #ifdef EXTENDED_TABLES |
462 | #error Need implementation to the new format | 463 | #error Need implementation to the new format |
@@ -470,16 +471,18 @@ LIB3270_INTERNAL void initialize_tables(H3270 *hSession) | @@ -470,16 +471,18 @@ LIB3270_INTERNAL void initialize_tables(H3270 *hSession) | ||
470 | 471 | ||
471 | } | 472 | } |
472 | 473 | ||
474 | +/* | ||
473 | void charset_defaults(H3270 *hSession) | 475 | void charset_defaults(H3270 *hSession) |
474 | { | 476 | { |
475 | - /* Go to defaults first. */ | 477 | + // Go to defaults first. |
476 | (void) memcpy((char *) hSession->charset.ebc2cg, (const char *)ebc2cg0, 256); | 478 | (void) memcpy((char *) hSession->charset.ebc2cg, (const char *)ebc2cg0, 256); |
477 | (void) memcpy((char *) hSession->charset.cg2ebc, (const char *)cg2ebc0, 256); | 479 | (void) memcpy((char *) hSession->charset.cg2ebc, (const char *)cg2ebc0, 256); |
478 | (void) memcpy((char *) hSession->charset.ebc2asc, (const char *)ebc2asc0, 256); | 480 | (void) memcpy((char *) hSession->charset.ebc2asc, (const char *)ebc2asc0, 256); |
479 | (void) memcpy((char *) hSession->charset.asc2ebc, (const char *)asc2ebc0, 256); | 481 | (void) memcpy((char *) hSession->charset.asc2ebc, (const char *)asc2ebc0, 256); |
480 | -#if defined(X3270_FT) /*[*/ | 482 | +#if defined(X3270_FT) |
481 | (void) memcpy((char *)hSession->charset.ft2asc, (const char *)ft2asc0, 256); | 483 | (void) memcpy((char *)hSession->charset.ft2asc, (const char *)ft2asc0, 256); |
482 | (void) memcpy((char *)hSession->charset.asc2ft, (const char *)asc2ft0, 256); | 484 | (void) memcpy((char *)hSession->charset.asc2ft, (const char *)asc2ft0, 256); |
483 | -#endif /*]*/ | 485 | +#endif |
484 | // clear_xks(); | 486 | // clear_xks(); |
485 | } | 487 | } |
488 | +*/ |