You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to add windows support to my project and encoding-related args of spawn are not implemented.
To be specific, encoding and codec_errors are not implemented. I experienced this with WEXPECT_SPAWN_CLASS=SpawnSocket, probably true with other spawn classes.
Describe the solution you'd like encoding and codec_errors arguments of spawn should be added and behave as in pexpect.
The text was updated successfully, but these errors were encountered:
Can you express a specific use-case when you need these arguments?
I ask, because wexpect uses strings only*. The root-cause is that the ReadConsoleOutputCharacter returns python str not byte-string** see related part of wexpect. This is why I cannot see any reason for encoding. Whole wexpect project (the searchers, reader, writer functions) works with strings
So please describe your use-case.
*((SpawnSocket uses byte-string, but this is another topic))
**((More precisely PyUnicode))
Is your feature request related to a problem? Please describe.
I am trying to add windows support to my project and encoding-related args of
spawn
are not implemented.To be specific,
encoding
andcodec_errors
are not implemented. I experienced this withWEXPECT_SPAWN_CLASS=SpawnSocket
, probably true with other spawn classes.Describe the solution you'd like
encoding
andcodec_errors
arguments ofspawn
should be added and behave as inpexpect
.The text was updated successfully, but these errors were encountered: