Behavior change re piping a string to a Java program

Jan 16, 2011
15
0
Hi. The attached zip contains a trivial Java program that reads a line of text from STDIN and echoes it in quotes to STDOUT.

In TCC 25.00.11, this command: echo bar|java Foo produces "bar"

In TCC 26.00.24, the same command produces "b a r "

Anyone know why the difference?
 

Attachments

  • Foo.zip
    786 bytes · Views: 234
Never mind. That behavior was occurring because I had checked the "Unicode output" box. Unchecking it restored the desired behavior.
 

Similar threads