> On Dec 22, 2025, at 9:56 PM, Kenneth Pettit <[email protected]> wrote: > If you want to try it, it *might* work on Windows as is (I don't know, > haven't used Windows for 15 years or so). On linux in src/remote.cpp I had > to add code to strip any trailing \r\n in the process command function prior > to assigning to 'cmd' variable, then it started working: > > std::string process_command(ServerSocket& sock, char *sockdata, int len, > int console=FALSE) > { > ... > > while (sockdata[len-1] == '\r' || sockdata[len-1] == '\n') > sockdata[--len] = 0; > > std::string cmd = sockdata; > ... > }
A big thank you, Ken, for the snippet. I've committed it to my repo just to keep things up to date. I have no reasonable way to test this under Windows myself — setting up some kind of build environment under WINE is way down the 'round to it list — but if nothing else I'll hang on to this fix.
