Package: ruby1.8 Version: 1.8.7.72-1 Severity: wishlist Backtrace of date.rb is not too useful it is instrumented with more code. Is there a smarter way to go?
To track down 'invalid date' error, I would have liked to know exact point it was erroring out, but I needed to add something like this: diff -u /tmp/date.rb /usr/lib/ruby/1.8/date.rb --- /tmp/date.rb 2009-01-26 15:41:44.320272686 +0900 +++ /usr/lib/ruby/1.8/date.rb 2009-01-26 15:39:45.000000000 +0900 @@ -1516,6 +1516,7 @@ def self.civil(y=-4712, m=1, d=1, h=0, min=0, s=0, of=0, sg=ITALY) unless (jd = valid_civil?(y, m, d, sg)) && (fr = valid_time?(h, min, s)) + $stderr.puts "year", y, "month", m, "day", d, "sg", sg raise ArgumentError, 'invalid date' end if String === of -- System Information: Debian Release: 5.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP) (ignored: LC_ALL set to ja_JP.eucJP) Shell: /bin/sh linked to /bin/bash Versions of packages ruby1.8 depends on: ii libc6 2.7-16 GNU C Library: Shared libraries ii libruby1.8 1.8.7.72-1 Libraries necessary to run Ruby 1. ruby1.8 recommends no packages. Versions of packages ruby1.8 suggests: pn rdoc1.8 <none> (no description available) pn ri1.8 <none> (no description available) pn ruby1.8-examples <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org