From f5f647729298e6755ca1f20deb3d4fe5c50d6a36 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 27 Dec 2018 10:23:52 -0200 Subject: [PATCH] Updating properties list. --- src/lib3270/host.c | 3 ++- src/lib3270/properties.c | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/lib3270/host.c b/src/lib3270/host.c index 8b94c24..464897d 100644 --- a/src/lib3270/host.c +++ b/src/lib3270/host.c @@ -54,6 +54,7 @@ #include #include +#include #define RECONNECT_MS 2000 /* 2 sec before reconnecting to host */ #define RECONNECT_ERR_MS 5000 /* 5 sec before reconnecting to host */ @@ -331,7 +332,7 @@ LIB3270_EXPORT int lib3270_set_url(H3270 *h, const char *n) { *(val++) = 0; - if(lib3270_set_string_property(h, var, val, 0)) + if(lib3270_set_string_property(h, var, val, 0) == 0) { continue; } diff --git a/src/lib3270/properties.c b/src/lib3270/properties.c index 68afdfe..1de2625 100644 --- a/src/lib3270/properties.c +++ b/src/lib3270/properties.c @@ -277,6 +277,20 @@ lib3270_set_host_type // Set value. }, + { + "host_charset", // Property name. + N_( "" ), // Property description. + lib3270_get_host_charset, // Get value. + lib3270_set_host_charset // Set value. + }, + + { + "display_charset", // Property name. + N_( "" ), // Property description. + lib3270_get_display_charset, // Get value. + NULL // Set value. + }, + /* { "", // Property name. -- libgit2 0.21.2