Comment #4 on issue 296 by DexterPu: CJK characters garbled in minibuffer
http://code.google.com/p/yi-editor/issues/detail?id=296

This patch solves part of the problem. It includes an ugly hack, so PLEASE  
DO NOT
APPLY THIS PATCH DIRECTLY.

Following Corey's comments, I wrapped the file path strings from user input  
and for
display with Misc.readPath and Misc.showPath (which are simple wrappers of
UTF8.encodeString and UTF8.decodeString).

However it seems that Misc.hs is not the right place for these wrappers,  
because I
cannot import them in Yi.Buffer.Misc ("file :: FBuffer -> (Maybe  
FilePath)"), so I
revert to UTF8.encodeString...

And it looks like that the width of chinese character is miscalculated, the
minibuffer is massed up by propmtFile if a chinese file name is prompted.  
I'm not
sure it's a problem of Yi or VTY.

Attachments:
        issue-296_2_.dpatch  46.2 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to