Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind)
Hello: I have updated the Wiki to include an explanation of the LineEdit property. I must admit that I didn't really pay attention to what it did, and thought it was only transliterating backspaces. Since I was testing my server by telnetting from a terminal, this seemed like a good idea. I think, however, that tab padding should be a function of the display and not the transport, but I don't object it being part of the component as long as it is False by default (which seems to have been the intention). dZ. On Dec 3, 2007, at 16:37, Arno Garrels wrote: Arno Garrels wrote: be added a line FLineMode := False; FLineEdit := False; of course! (AV due to the second beer). -- Arno Garrels -- DZ-Jay [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind)
Hello: Nevermind my last message. Like an idiot, I set LineEdit mode to True by mistake. I made this change inadvertently today, which explains why I didn't notice it before. Sorry, -dZ. --- Original Message --- From: [EMAIL PROTECTED]:[EMAIL PROTECTED] Sent: 12/3/2007 4:09:17 PM To : twsocket@elists.org Cc : Subject : RE: [twsocket] TWSocket transliterating tabs to spaces (?!) Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (?!)
[EMAIL PROTECTED] wrote: Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! Is LineEdit turned on ? -- Arno Garrels I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (?!)
Are you using line mode and line edit ? -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, December 03, 2007 9:09 PM Subject: [twsocket] TWSocket transliterating tabs to spaces (?!) Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] TWSocket transliterating tabs to spaces (?!)
Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (?!)
Thank you for your very fast response -- even faster than my other message acknowledging my stupidity :) Is LineEdit turned on ? Yes, it was. DOH! Thanks, -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind)
[EMAIL PROTECTED] wrote: Hello: Nevermind my last message. Too late ;-) But it should be realy made the default value. FLineEdit seems not being initialized correctly allways, at least not by the Delphi 7 compiler, maybe when Optimization is turned off ? -- Arno Garrels Like an idiot, I set LineEdit mode to True by mistake. I made this change inadvertently today, which explains why I didn't notice it before. Sorry, -dZ. --- Original Message --- From: [EMAIL PROTECTED]:[EMAIL PROTECTED] Sent: 12/3/2007 4:09:17 PM To : twsocket@elists.org Cc : Subject : RE: [twsocket] TWSocket transliterating tabs to spaces (?!) Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind)
I noticed that it is not initialized anywhere, which means that its going to be False by default (supposedly). Perhaps compiler optimizations will cause it to be stored in a cpu register and without initialization may not be guaranteed to be 0 (false). -dZ. --- Original Message --- From: Arno Garrels[mailto:[EMAIL PROTECTED] Sent: 12/3/2007 4:38:28 PM To : twsocket@elists.org Cc : Subject : RE: Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind) [EMAIL PROTECTED] wrote: Hello: Nevermind my last message. Too late ;-) But it should be realy made the default value. FLineEdit seems not being initialized correctly allways, at least not by the Delphi 7 compiler, maybe when Optimization is turned off ? -- Arno Garrels Like an idiot, I set LineEdit mode to True by mistake. I made this change inadvertently today, which explains why I didn't notice it before. Sorry, -dZ. --- Original Message --- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: 12/3/2007 4:09:17 PM To : twsocket@elists.org Cc : Subject : RE: [twsocket] TWSocket transliterating tabs to spaces (?!) Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind)
[EMAIL PROTECTED] wrote: I noticed that it is not initialized anywhere, which means that its going to be False by default (supposedly). Perhaps compiler optimizations will cause it to be stored in a cpu register and without initialization may not be guaranteed to be 0 (false). I think it was the intention to have it FALSE=NULL by default. If so, in the constructor of TCustomLineWSocket there should be added a line FLineMode := False; -- Arno Garrels --- Original Message --- From: Arno Garrels[mailto:[EMAIL PROTECTED] Sent: 12/3/2007 4:38:28 PM To : twsocket@elists.org Cc : Subject : RE: Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind) [EMAIL PROTECTED] wrote: Hello: Nevermind my last message. Too late ;-) But it should be realy made the default value. FLineEdit seems not being initialized correctly allways, at least not by the Delphi 7 compiler, maybe when Optimization is turned off ? -- Arno Garrels Like an idiot, I set LineEdit mode to True by mistake. I made this change inadvertently today, which explains why I didn't notice it before. Sorry, -dZ. --- Original Message --- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: 12/3/2007 4:09:17 PM To : twsocket@elists.org Cc : Subject : RE: [twsocket] TWSocket transliterating tabs to spaces (?!) Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind)
Arno Garrels wrote: be added a line FLineMode := False; FLineEdit := False; of course! (AV due to the second beer). -- Arno Garrels --- Original Message --- From: Arno Garrels[mailto:[EMAIL PROTECTED] Sent: 12/3/2007 4:38:28 PM To : twsocket@elists.org Cc : Subject : RE: Re: [twsocket] TWSocket transliterating tabs to spaces (nevermind) [EMAIL PROTECTED] wrote: Hello: Nevermind my last message. Too late ;-) But it should be realy made the default value. FLineEdit seems not being initialized correctly allways, at least not by the Delphi 7 compiler, maybe when Optimization is turned off ? -- Arno Garrels Like an idiot, I set LineEdit mode to True by mistake. I made this change inadvertently today, which explains why I didn't notice it before. Sorry, -dZ. --- Original Message --- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Sent: 12/3/2007 4:09:17 PM To : twsocket@elists.org Cc : Subject : RE: [twsocket] TWSocket transliterating tabs to spaces (?!) Hello: I just noticed something very bizarre: My client application sends text data using TWSocket to a TWSocketServer server application, and leading tabs are transliterated into spaces when they arrive! I've traced a particular string all the way until TWSocket puts it in its internal buffer to send and it still contains a #09 char at byte position 0. However, tracing the OnDataAvailable event of the receiving TWSocketClient, ReceiveStr returns the same string but now it has spaces at the beginning and no tab character. I don't recall ever seeing this before. Perhaps I'm missing an obscure setting or made a stupid mistake? Can anybody offer any suggestions? -dZ. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be