Commit f5f647729298e6755ca1f20deb3d4fe5c50d6a36
1 parent
2ab61443
Exists in
master
and in
3 other branches
Updating properties list.
Showing
2 changed files
with
16 additions
and
1 deletions
Show diff stats
src/lib3270/host.c
... | ... | @@ -54,6 +54,7 @@ |
54 | 54 | |
55 | 55 | #include <errno.h> |
56 | 56 | #include <lib3270/internals.h> |
57 | +#include <lib3270/properties.h> | |
57 | 58 | |
58 | 59 | #define RECONNECT_MS 2000 /* 2 sec before reconnecting to host */ |
59 | 60 | #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) |
331 | 332 | { |
332 | 333 | *(val++) = 0; |
333 | 334 | |
334 | - if(lib3270_set_string_property(h, var, val, 0)) | |
335 | + if(lib3270_set_string_property(h, var, val, 0) == 0) | |
335 | 336 | { |
336 | 337 | continue; |
337 | 338 | } | ... | ... |
src/lib3270/properties.c
... | ... | @@ -277,6 +277,20 @@ |
277 | 277 | lib3270_set_host_type // Set value. |
278 | 278 | }, |
279 | 279 | |
280 | + { | |
281 | + "host_charset", // Property name. | |
282 | + N_( "" ), // Property description. | |
283 | + lib3270_get_host_charset, // Get value. | |
284 | + lib3270_set_host_charset // Set value. | |
285 | + }, | |
286 | + | |
287 | + { | |
288 | + "display_charset", // Property name. | |
289 | + N_( "" ), // Property description. | |
290 | + lib3270_get_display_charset, // Get value. | |
291 | + NULL // Set value. | |
292 | + }, | |
293 | + | |
280 | 294 | /* |
281 | 295 | { |
282 | 296 | "", // Property name. | ... | ... |