Commit 22716b6379670c94a25eea6393a44de855c7dddb
1 parent
15ced02e
Exists in
master
and in
3 other branches
Adjustments in the remap engine.
Showing
3 changed files
with
9 additions
and
2 deletions
Show diff stats
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