[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-devel] [PATCH 01/10] open mail source files as binary
Reformatted excerpts from Rich Lane's message of 2010-01-01:
> It doesn't sound very useful to have -w writing messages to the screen
> in an ncurses app. Could you redirect stderr to a file instead? Is it
> possible to do this from inside Sup?
Some experimentation suggests we can do
$stderr = File.open(File.join(BASE_DIR, "warnings.txt"), "w")
and subsequent warns go to that file. At least, it works in irb.
> That warning's existence annoys me. I thought it was a feature that
> Ruby 1.8 ignored the encoding in the mode string.
Yeah, lame.
--
William <wmorgan-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel