[#1212] | project: compiler | priority: low | category: bug | |
---|---|---|---|---|
submitter | assigned to | status | date submitted | |
Nikolay | Lex | open | 2007-07-16 10:19:47.0 | |
subject | [contrib #688] Should not try to interpret binary files | |||
code |
scala ./sbaz.jar It was typo. |
|||
what happened | Megabyte of garbage on terminal. Buggy terminals like OS X builtin terminal get killed. |
|||
what expected | Error message. | |||
[back to overview] |
Nikolay edited on 2007-07-17 10:27:38.0 |
Lex edited on 2007-07-24 17:14:14.0 |
It would be nice to at least soften the harm from this trap. However, I do not know a specific change to suggest. It is probably impossible to detect a binary file except by trying to parse it. However, maybe we should do something special if there are tons of scanner errors? Or, maybe the error-printing routine should check for "control" characters and print '?' characters instead? |