Commit 5c7281798cda864e2277d602b5e8bcd5b6c0a407
1 parent
e2203c89
Exists in
master
and in
1 other branch
Updating charset methods.
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
src/core/controller.cc
| @@ -46,7 +46,14 @@ | @@ -46,7 +46,14 @@ | ||
| 46 | if(hllapi_host) | 46 | if(hllapi_host) |
| 47 | delete hllapi_host; | 47 | delete hllapi_host; |
| 48 | 48 | ||
| 49 | - hllapi_host = new TN3270::Host(*id ? id : nullptr,nullptr,hllapi_timeout); | 49 | +#ifdef _WIN32 |
| 50 | + // TODO: Detect the current value (maybee something like g_charset) | ||
| 51 | + hllapi_host = new TN3270::Host(*id ? id : nullptr, "CP1252"); | ||
| 52 | +#else | ||
| 53 | + hllapi_host = new TN3270::Host(*id ? id : nullptr, "UTF-8"); | ||
| 54 | +#endif // _WIN32 | ||
| 55 | + | ||
| 56 | + hllapi_host->setTimeout(hllapi_timeout); | ||
| 50 | 57 | ||
| 51 | } | 58 | } |
| 52 | catch(std::exception &e) | 59 | catch(std::exception &e) |