Commit 012593ac9cdf7c158118c64f68a4858cab3f88d0
1 parent
11bc769d
Exists in
master
Fixing windows builds. Basic tests are ok.
Showing
3 changed files
with
17 additions
and
20 deletions
Show diff stats
README.md
... | ... | @@ -19,21 +19,16 @@ Cross-compiling on SuSE Linux (Native or WSL) |
19 | 19 | Compiling for Windows (With MSYS2) |
20 | 20 | ---------------------------------- |
21 | 21 | |
22 | -1. Install python and python devel | |
22 | +1. Install pw3270 with remote control and sdk modules | |
23 | 23 | |
24 | -2. Build and install lib3270 | |
24 | +2. Build and install the "glue" library | |
25 | 25 | |
26 | - * Follow the guide on https://github.com/PerryWerneck/lib3270 | |
26 | + * Open a MSVC Native tools command prompt as administrator. | |
27 | + * git clone https://github.com/PerryWerneck/libipc3270.git ./ipc3270 | |
28 | + * cd ipc3270 | |
29 | + * install.bat | |
27 | 30 | |
28 | -3. Build and install libv3270 | |
29 | - | |
30 | - * Follow the guide on https://github.com/PerryWerneck/libv3270 | |
31 | - | |
32 | -4. Build and install libipc3270 | |
33 | - | |
34 | - * Follow the guide on https://github.com/PerryWerneck/libipc3270 | |
35 | - | |
36 | -5. Get python-tn3270 sources from git | |
31 | +3. Get python-tn3270 sources from git | |
37 | 32 | |
38 | 33 | * git clone https://github.com/PerryWerneck/python-tn3270.git ./python-tn3270 |
39 | 34 | |
... | ... | @@ -46,4 +41,6 @@ Compiling for Windows (With MSYS2) |
46 | 41 | |
47 | 42 | * python setup.py install |
48 | 43 | |
44 | +8. Build windows installer (optional) | |
49 | 45 | |
46 | + * python setup.py bdist_wininst | ... | ... |
src/session/init.cc
... | ... | @@ -121,7 +121,7 @@ int py3270_session_init(PyObject *self, PyObject *args, PyObject *kwds) { |
121 | 121 | if (!PyArg_ParseTuple(args, "s", &id)) |
122 | 122 | id = ""; |
123 | 123 | |
124 | - session->host = new TN3270::Host(id); | |
124 | + session->host = new TN3270::Host(id,"UTF-8"); | |
125 | 125 | |
126 | 126 | return 0; |
127 | 127 | ... | ... |
testprograms/sample.py
... | ... | @@ -52,17 +52,17 @@ print('----------------------') |
52 | 52 | |
53 | 53 | print(session.get(14,22,38)) |
54 | 54 | |
55 | -#print("-----------------------------------------------------------------------") | |
56 | -#print(session) | |
57 | -#print("-----------------------------------------------------------------------") | |
55 | +print("-----------------------------------------------------------------------") | |
56 | +print(session) | |
57 | +print("-----------------------------------------------------------------------") | |
58 | 58 | |
59 | 59 | session.enter().wait(14,2,"Senha") |
60 | 60 | |
61 | -#session.set("value") | |
61 | +session.set("value") | |
62 | 62 | |
63 | -#print("-----------------------------------------------------------------------") | |
64 | -#print(session) | |
65 | -#print("-----------------------------------------------------------------------") | |
63 | +print("-----------------------------------------------------------------------") | |
64 | +print(session) | |
65 | +print("-----------------------------------------------------------------------") | |
66 | 66 | |
67 | 67 | input("Press enter to exit") |
68 | 68 | ... | ... |