mdr icon indicating copy to clipboard operation
mdr copied to clipboard

Problem with accented characters

Open jlecour opened this issue 11 years ago • 3 comments

Hi,

Sometimes (often), I have a blank mdr window.

I took a few minutes to look into this and found that it's an issue with accented characters.

Here is a sample diff that will always produce a blank window :

diff --git file.rb file.rb
index 0123456..6543210 100644
--- file.rb
+++ file.rb
@@ -2,7 +2,7 @@
 line2
 line3
 line4
-old_line5 è
+new_line5 é
 line6
 line7
 line8

Strangely enough, if the accented letters are the same, it works.

jlecour avatar Dec 30 '13 14:12 jlecour

I was able to reproduce this on the Mac version. I have not tested Linux or Windows yet. Probably an issue with all non ASCII characters.

halffullheart avatar Feb 20 '14 07:02 halffullheart

I confirm this happens on Linux too

madx avatar Feb 20 '14 07:02 madx

MDR does not handle unicode characters correctly. It assumes 1 byte = 1 character. Noob mistake of mine back when I originally wrote this.

halffullheart avatar Oct 31 '14 20:10 halffullheart