Per-client codepage detection and handling

This commit is contained in:
Matthew R. Wilson committed 2025-11-25 16:31:09 -08:00
1 parent 1859568369
commit 7b7d375e91
14 files changed
+349 -109

No files matched your search

+3 -2
View File
@@ -48,7 +48,7 @@ var helpScreen = go3270.Screen{
// generator function for it is a stand-alone function and not a method on the
// session.
func help(returnTransaction go3270.Tx) go3270.Tx {
return func(conn net.Conn, _ go3270.DevInfo, data any) (
return func(conn net.Conn, devinfo go3270.DevInfo, data any) (
go3270.Tx, any, error) {
_, err := go3270.HandleScreen(
helpScreen, // the screen to display
@@ -58,7 +58,8 @@ func help(returnTransaction go3270.Tx) go3270.Tx {
nil,
"errormsg", // name of field to put error messages in
23, 79, // cursor coordinates
conn)
conn,
devinfo.Codepage())
if err != nil {
return nil, nil, err
}