Ticket #5 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

Cannot input unicode characters?

Reported by: coconnor Owned by: coconnor
Priority: major Milestone:
Component: Uncategorized Version: 3.0.4
Keywords: Cc:

Description (last modified by coconnor) (diff)

From: http://code.google.com/p/yi-editor/issues/detail?id=126

  1. locale is zh_CN.utf8
    • input methold is fcitx, xim
    • please refer to issue 125
  2. under urxvt, start yi:

yi -f vty --as=emacs

  1. open an Chinese utf8 text and input some characters.

It's possible that the LLInput module cannot handle unicode characters? Investigate.

Change History

Changed 9 years ago by coconnor

  • status changed from new to assigned
  • description modified (diff)

Changed 9 years ago by coconnor

vty processes "ψ" as two ASCII characters:

EvKey? (KASCII '\136') []EvKey? (KASCII '\207') []

Should just produce a single key event in this case. Unsure of what amount of work is required to do so.

Changed 9 years ago by coconnor

A test of using a variant of "getChar" instead of reading a single byte from STDIN did not show a change in the final events.

I think "LLInput.compile" needs to be enhanced to support unicode.

Changed 9 years ago by lchangying@…

still not fixed?

Changed 8 years ago by coconnor

  • status changed from assigned to closed
  • resolution set to fixed

Resolved latest in darcs. Note: The latest in darcs is for vty version 4.0.0. Any programs currently dependent on vty 3 need to be updated to account for API changes in vty 4.

See patch attached to:

for an example conversion.

Note: See TracTickets for help on using tickets.