What | Removed | Added |
---|---|---|
Status | NEW | CONFIRMED |
To reproduce: # /usr/lib/YaST2/bin/y2base ./hello.rb ncurses # https://bugzilla.suse.com/show_bug.cgi?id=943757 require "yast" include Yast::UIShortcuts $stderr.puts "Hello, stderr! 1" # This succeeds module Yast import "UI" UI.OpenDialog(PushButton("Hello, World!")) $stderr.puts "Hello, stderr! 2" # Bad file descriptor @ io_write UI.UserInput UI.CloseDialog end I thought that we did redirect to the log, but it turns out that since 2008 ncurses redirects stdout and stderr to /dev/null, even with some suspicious flags (defaulting to O_RDONLY) which may never have worked: https://github.com/libyui/libyui-ncurses/blob/8f861f5ccb77a72fdcc17e909f2811102f09d3b1/src/NCurses.cc#L566 open( log.c_str(), O_APPEND | O_CREAT, 0666 );