Project

General

Profile

« Previous | Next » 

Revision e78beed4

Added by nobu (Nobuyoshi Nakada) about 9 years ago

io/console: unknown key code for names with nul

  • ext/io/console/console.c (console_key_pressed_p): raise the same
    exception, "unknown virtual key code", for names with nul chars.
    though console_win32_vk() considers the length and can deal with
    nul chars, rb_sprintf() raised at PRIsVALUE previously, so quote
    it if it is unprintable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e