[ruby-cvs:61751] nobu:r54589 (trunk): io/console: unknown key code for names with nul

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Apr 15 10:07:14 JST 2016


nobu	2016-04-15 10:07:14 +0900 (Fri, 15 Apr 2016)

  New Revision: 54589

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54589

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/io/console/console.c
    trunk/test/io/console/test_io_console.rb


More information about the ruby-cvs mailing list