Re: read-line is limited to 4095 chars

2017-10-17 Thread Tijs Mallaerts
Running the command "stty -icanon" in the KDE Konsole terminal fixed the 4096 limit for me. Op donderdag 28 september 2017 13:32:48 UTC+2 schreef Peter Hull: > > On Tuesday, 26 September 2017 12:28:26 UTC+1, baptiste...@oscaro.com > wrote: >> >> I was using read-line to read a large line and fou

Re: read-line is limited to 4095 chars

2017-09-28 Thread Peter Hull
On Tuesday, 26 September 2017 12:28:26 UTC+1, baptiste...@oscaro.com wrote: > > I was using read-line to read a large line and found it limits its input > to 4095 chars. I tested this on both Clojure 1.8.0 and 1.9.0-beta1. > > I tested this on Windows. I found that piping from the CMD.EXE command

Re: read-line is limited to 4095 chars

2017-09-27 Thread Juraj Martinka
It still works for me going beyond 8192: wc -c very-long-line.txt 8263 very-long-line.txt java -cp /Users/jumar/.m2/repository/org/clojure/clojure/1.8.0/clojure-1.8.0.jar clojure.main read-line.clj < very-long-line.txt 8262 On Wednesday, September 27, 2017 at 10:07:49 AM UTC+2

Re: read-line is limited to 4095 chars

2017-09-27 Thread Matching Socks
The OP's figure for 4k suggests the "k" must be interpreted as x1024, so the corresponding threshold for 8k should be 8192. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts

Re: read-line is limited to 4095 chars

2017-09-26 Thread Juraj Martinka
I'm running on Mac OS X Sierra with Clojure 1.8. I have to admit that behavior when trying to read a long line in terminal/repl is a bit odd (it may be the limitation of terminal). However, If I try this via input from the text file it works properly: wc -c very-long-line.txt 8101 very-lo

Re: read-line is limited to 4095 chars

2017-09-26 Thread baptiste . fontaine
> I'm not experiencing this on Windows... Could it be that your > terminal or tooling is limiting the input to 4096 characters? Are you able to read more than 8k characters? Le mardi 26 septembre 2017 16:56:24 UTC+2, David Powell a écrit : > > I'm not experiencing this on Windows... Could it b

Re: read-line is limited to 4095 chars

2017-09-26 Thread David Powell
I'm not experiencing this on Windows... Could it be that your terminal or tooling is limiting the input to 4096 characters? On Tue, Sep 26, 2017 at 2:20 PM, Alex Miller wrote: > Please file a jira enhancement. Changes could include updating the doc > string, or adding a new arity to read-line th

Re: read-line is limited to 4095 chars

2017-09-26 Thread Alex Miller
Please file a jira enhancement. Changes could include updating the doc string, or adding a new arity to read-line that takes a size and passes it through to the buffered reader. On Tuesday, September 26, 2017 at 6:28:26 AM UTC-5, baptiste.fonta...@oscaro.com wrote: > > Hello there, > > I was u

read-line is limited to 4095 chars

2017-09-26 Thread baptiste . fontaine
Hello there, I was using read-line to read a large line and found it limits its input to 4095 chars. I tested this on both Clojure 1.8.0 and 1.9.0-beta1. Steps to reproduce: $ lein new foo $ cd foo $ lein repl ... => (count (read-line)) Then enter a line that’s longer than 4095 charact