Community
Participate
Working Groups
Build Identifier: This one-liner (based on today's HEAD) allows to have spaces embedded within TCF messages to be shown by the TCF logger as actual spaces and not as unprintable characters. I have found it very useful to improve readability of TCF logs. Note that the end of string character was also handled that way (i.e shown as a space). Changing it to an "<eos>" string as as to differentiate it from a normal space does not improve readability very much though so I have chosen to leave this previous behavior unchanged. Reproducible: Always Steps to Reproduce: 1. Start a TCF agent. 2. Launch a TCF logger on the agent port. 3. Start a TCF client and connect it to the logger. 4. Run TCF commands which have spaces embedded in them or which return such results. 5. The logger will show what goes through the link albeit with spaces shown as non-printable characters (i.e the "this is a message string" will be shown as "this\x20is\x20a\x20message\x20string" which is far less readable).
Created attachment 215697 [details] Patch making the TCF logger show spaces as actual spaces
I have successfully tested the patch with the TCF logger (tcflog) but, as I understand it, it should also apply to the TCF logging features of the agent (as the source targets the TCF proxy redirection layer). I have thus modified the bug title to reflect this.
I have committed the patch. Thanks!
Comment on attachment 215697 [details] Patch making the TCF logger show spaces as actual spaces iplog- since git has the author: http://git.eclipse.org/c/tcf/org.eclipse.tcf.agent.git/commit/?id=c19df67c818951693cbe9d1286baefd2db58b01b