Commit 159e74d579cf1383c50b6233a11788cd2e0c360a
1 parent
6d5ff4a3
Exists in
master
and in
3 other branches
Trabalhando nas tabelas de conversão de charset
Showing
1 changed file
with
10 additions
and
7 deletions
Show diff stats
tables.c
... | ... | @@ -450,13 +450,14 @@ unsigned short ebc2asc7[256]; |
450 | 450 | LIB3270_INTERNAL void initialize_tables(H3270 *hSession) |
451 | 451 | { |
452 | 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 | 453 | memcpy(hSession->charset.ebc2asc, ebc2asc0, sizeof(hSession->charset.ebc2asc)); |
456 | 454 | memcpy(hSession->charset.asc2ebc, asc2ebc0, sizeof(hSession->charset.asc2ebc)); |
457 | 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 | 462 | #ifdef EXTENDED_TABLES |
462 | 463 | #error Need implementation to the new format |
... | ... | @@ -470,16 +471,18 @@ LIB3270_INTERNAL void initialize_tables(H3270 *hSession) |
470 | 471 | |
471 | 472 | } |
472 | 473 | |
474 | +/* | |
473 | 475 | void charset_defaults(H3270 *hSession) |
474 | 476 | { |
475 | - /* Go to defaults first. */ | |
477 | + // Go to defaults first. | |
476 | 478 | (void) memcpy((char *) hSession->charset.ebc2cg, (const char *)ebc2cg0, 256); |
477 | 479 | (void) memcpy((char *) hSession->charset.cg2ebc, (const char *)cg2ebc0, 256); |
478 | 480 | (void) memcpy((char *) hSession->charset.ebc2asc, (const char *)ebc2asc0, 256); |
479 | 481 | (void) memcpy((char *) hSession->charset.asc2ebc, (const char *)asc2ebc0, 256); |
480 | -#if defined(X3270_FT) /*[*/ | |
482 | +#if defined(X3270_FT) | |
481 | 483 | (void) memcpy((char *)hSession->charset.ft2asc, (const char *)ft2asc0, 256); |
482 | 484 | (void) memcpy((char *)hSession->charset.asc2ft, (const char *)asc2ft0, 256); |
483 | -#endif /*]*/ | |
485 | +#endif | |
484 | 486 | // clear_xks(); |
485 | 487 | } |
488 | +*/ | ... | ... |