mdr
mdr copied to clipboard
Problem with accented characters
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.
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.
I confirm this happens on Linux too
MDR does not handle unicode characters correctly. It assumes 1 byte = 1 character. Noob mistake of mine back when I originally wrote this.