From: ts Date: 2001-10-02T16:12:52+09:00 Subject: [ruby-talk:21928] Re: Embedding >>>>> "D" == Drirr C writes: D> Now, going back to redirecting the output; the source code is full of D> printf()'s, fprintf(stderr,...)'s and puts(). For redirecting the output D> elsewhere I'll need to change most of those functions, if not all. Well, apparently we don't have the same source :-) printf() is used only in rb_backtrace() and print_compiled_pattern() which are 2 functions not used by ruby puts() is never used, only fputs() and with stderr for error message. fprintf(stderr, ...) is used to display error message when errors are not catched (via rb_protect(), rb_eval_string_protect(), ...). Guy Decoux