Re: [Pharo-project] Issue 5476: File Browser Invalid utf8 input detected when clicking on a binary file

2012-03-16 Thread Marcus Denker
On Mar 16, 2012, at 2:48 AM, Alexis Parseghian wrote: Clicking on a file in the File Browser immediately loads a preview of its contents. Works fine for text files, but when the file is binary (eg .image, .png) the above error is raised. Changeset attached in the issue, wrapping on:do:

[Pharo-project] Issue 5476: File Browser Invalid utf8 input detected when clicking on a binary file

2012-03-15 Thread Alexis Parseghian
Clicking on a file in the File Browser immediately loads a preview of its contents. Works fine for text files, but when the file is binary (eg .image, .png) the above error is raised. Changeset attached in the issue, wrapping on:do: handler around contents-reading calls. The fix as provided is