tcolar / goed

Terminal based code editor / development environment
MIT License
133 stars 6 forks source link

Windows file with BOM signature at the beginning is making termbox.flush hang #131

Closed tcolar closed 8 years ago

tcolar commented 8 years ago

Seen with a .cs file (from windows) Not sure why, investigate

tcolar commented 8 years ago

Seem term impl of ui.Render() never terminates, other events are still received.

tcolar commented 8 years ago

Turns out the (windows) file has some weird crap at the beginning ef bb bf 0a (magic??) that's causing termbox.flush to hang

0000000 ef bb bf 0a 70 75 62 6c 69 63 20 73 74 61 74 69
tcolar commented 8 years ago

Turns out it's a "byte order mark" signature https://en.wikipedia.org/wiki/Byte_order_mark

Guess those should just not be rendered or rendered as "?" or whatever, or maybe just get rid of it at it's pretty useless and troublesome in general.

tcolar commented 8 years ago

Fixed by stripping those out as they mostly cause problems.