merge revision(s) 40117,40118,40333: [Backport #8222]

	* test/test_curses.rb: tests for getch.
	* ext/curses/curses.c (Init_curses): fix implementation function,
	  crmode should be same as cbreak.  [ruby-core:54013] [Bug #8222]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
merge revision(s) 40362: [Backport #7997]

	* lib/cgi/cookie.rb(CGI::Cookie.parse): add require
  for standalone require 'cgi/cookie' .[Bug #7997]

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