| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005678 | OCaml | OCaml general | public | 2012-07-11 07:24 | 2012-07-11 11:53 |
|
| Reporter | antalsz | |
| Assigned To | dim | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | |
| Platform | | OS | | OS Version | |
| Product Version | 3.12.1 | |
| Target Version | | Fixed in Version | | |
|
| Summary | 0005678: Unable to provide long (1024/4096+ character) inputs to the OCaml toplevel |
| Description | When using the OCaml toplevel, it will not accept more than 1024/4096 characters of input at a time. A line of input containing 1023/4095 characters can be followed by a return; a line of input containing 1024/4096 characters just beeps when any additional keys (letters, return, etc.) are pressed. Importantly, this *only* happens if OCaml is running interactively. Piping input in or reading input from a file does not cause any problems.
I've tested this on Mac OS X 10.6.7 and 10.7.4, with 3.12.1 from Homebrew (and 4.00.0+beta2 on the 10.6.7 system), I get this with 1024 characters every time. I believe the limit is 4096 characters on Linux systems, but I have not been able to check this directly (I have confirmed it second-hand). |
| Steps To Reproduce | Generate a 1023/4095 character string, e.g. by running `perl -e 'print ((" " x 1020) . "1;;")'` or `perl -e 'print ((" " x 4092) . "1;;")'`; copy and paste this into the top level; and try to continue typing. |
| Tags | No tags attached. |
|
| Attached Files | |
|