Commit 22716b6379670c94a25eea6393a44de855c7dddb

Authored by Perry Werneck
1 parent 15ced02e

Adjustments in the remap engine.

src/core/charset/charset.c
@@ -219,6 +219,12 @@ LIB3270_EXPORT void lib3270_reset_charset(H3270 *hSession, const char * host, co @@ -219,6 +219,12 @@ LIB3270_EXPORT void lib3270_reset_charset(H3270 *hSession, const char * host, co
219 219
220 #define replace_pointer(x,v) if(x) { lib3270_free(x); }; x = strdup(v) 220 #define replace_pointer(x,v) if(x) { lib3270_free(x); }; x = strdup(v)
221 221
  222 + if(!host)
  223 + host = "us";
  224 +
  225 + if(!display)
  226 + display = "ISO-8859-1";
  227 +
222 replace_pointer(hSession->charset.host, host); 228 replace_pointer(hSession->charset.host, host);
223 replace_pointer(hSession->charset.display,display); 229 replace_pointer(hSession->charset.display,display);
224 230
src/include/lib3270-internals.h
@@ -274,8 +274,6 @@ struct lib3270_text @@ -274,8 +274,6 @@ struct lib3270_text
274 #endif // !LIB3270_TA 274 #endif // !LIB3270_TA
275 275
276 #define LIB3270_MB_MAX 16 276 #define LIB3270_MB_MAX 16
277 -#define LIB3270_DEFAULT_CGEN 0x02b90000  
278 -#define LIB3270_DEFAULT_CSET 0x00000025  
279 277
280 #define LIB3270_FULL_MODEL_NAME_LENGTH 13 278 #define LIB3270_FULL_MODEL_NAME_LENGTH 13
281 #define LIB3270_LU_MAX 32 279 #define LIB3270_LU_MAX 32
src/include/lib3270/charset.h
@@ -37,6 +37,9 @@ @@ -37,6 +37,9 @@
37 extern "C" { 37 extern "C" {
38 #endif 38 #endif
39 39
  40 + #define LIB3270_DEFAULT_CGEN 0x02b90000
  41 + #define LIB3270_DEFAULT_CSET 0x00000025
  42 +
40 struct lib3270_charset 43 struct lib3270_charset
41 { 44 {
42 char * host; 45 char * host;