Pistos / diakonos

Diakonos is a console text editor for the masses.
https://git.sr.ht/~pistos/diakonos
Other
137 stars 11 forks source link

Crash on UTF-8 input #33

Closed dcarrera closed 11 years ago

dcarrera commented 11 years ago

I have had to stop using Diakonos because it crashes whenever I accidentally enter a non-ASCII character like "á". The problem is present in the latest Git download using Ruby 1.9.3. When I enter a non-ASCII character, Diakonos instantly crashes with the error:

/usr/lib/ruby/1.9.1/diakonos/buffer/selection.rb:290:in paste': incompatible character encodings: ASCII-8BIT and US-ASCII (Encoding::CompatibilityError) from /usr/lib/ruby/1.9.1/diakonos/keying.rb:291:inprocess_keystroke' from /usr/lib/ruby/1.9.1/diakonos.rb:388:in start' from ./diakonos:6:in

'

Is it possible to avoid the crash somehow? I do not actually need it to display non-ASCII characters, I just don't want to lose all my work every time I accidentally type an "á".

dcarrera commented 11 years ago

Actually, it looks like I was actually running my distribution's installed version of diakonos. I just installed diakonos correctly from Git and the crash seems to be fixed. In fact, it even seems to support unicode (I thought diakonos could not support unicode).

Anyway, I declare the issue mute. I'm closing this bug.

Pistos commented 11 years ago

Hi. Sorry I missed this issue report! I'm glad things are working for you now, though. I use accented characters and stuff from time to time in my documents without issue.