On Tue, 07 Jul 2009 22:50:50 +0900 Daigo Moriwaki wrote: > Hi, Francesco > > Francesco Poli wrote: > >> I noticed that /usr/lib/ruby/1.8/tempfile.rb sends debug output > >> (when $DEBUG is true) to $stdout. > > [...] > >> It is my understanding that this behavior is unintentional: debug > >> output (when enabled with the $DEBUG variable) should be directed > >> to $stderr . > >> > >> Please fix those two lines so that they send debug output to > >> $stderr and forward this bug report upstream, as appropriate. > > [...] > > > > Is there any progress on this bug? > > It seems to be fairly trivial to fix, doesn't it? > > Your suggestion is reasonable for me, too.
Good. > However, grep'ing existing codes [1] > reveals that there are other debug messages directed to STDOUT. Well, it seems that some of them are directed to STDOUT, while some other are sent to STDERR. Numbers seem to be well comparable to each other. On my system I get: $ grep '\$DEBUG' $(find /usr/lib/ruby/1.8/ -name \*.rb) | grep 'puts\|print' | grep -i stderr | wc -l 10 $ grep '\$DEBUG' $(find /usr/lib/ruby/1.8/ -name \*.rb) | grep 'puts\|print' | grep -iv stderr | wc -l 10 > I don't think > they are "bugs". Instead, I guess that the upstream does not strictly manage > it. Sending some debug messages to STDERR and some others to STDOUT *is* a bug: lack of consistency, at least... I *really* think this kind of inconsistency should be fixed: all debug messages should be sent to STDERR, unless there are compelling reasons to do otherwise. > > Anyway, you can consult the upstream and file a ticket[2]. This kind of bugs > should be first fixed by the upstream, instead of individual distributions. Could you please forward my bug report to upstream? It seems to that I would need to create an account just to file tickets on the upstream issue tracker: I am already going mad with tens of passwords (and passphrases) to remember for hosts/keys/services/... I love the Debian BTS, because it is completely manageable via e-mail, without the need to create any account. -- New location for my website! Update your bookmarks! http://www.inventati.org/frx ..................................................... Francesco Poli . GnuPG key fpr == C979 F34B 27CE 5CD8 DC12 31B5 78F4 279B DD6D FCF4
pgpbRRU2Bak6Y.pgp
Description: PGP signature

