git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] Cogito-0.11.3

From
CWChris Wright <chrisw@osdl.org>
Date
Jun 9, 2005, 21:06 UTC
Message-ID
<20050609210641.GK5324@shell0.pdx.osdl.net>
In-Reply-To
<20050609205503.GJ5324@shell0.pdx.osdl.net>
* Chris Wright (chrisw@osdl.org) wrote:
Show 9 quoted lines
> * Dan Holmsand (holmsand@gmail.com) wrote:
> > Konstantin Antselovich wrote:
> > >I have updated to Cogito-0.11.3, it compiles and runs
> > >but make test returns multiple error messages (see below)
> > 
> > There's a typo in rev-list.c. This fixes the tests for me:
> 
> This patch is white space damaged.  I fixed it, and added it to the
> cogito-0.11.3 rpm.  Below is the refreshed patch.

Looks like showdate() is having some minor trouble. A simple cg-log gave me errors indicating the tz is being interpreted as octal. There's probably a better way, but bruteforce works ;-) This patch is in the RPM packages which are now uploading.

thanks, -chris --

Strip leading zero from timezone to keep it from being interpreted as octal causing error such as:

/usr/lib/cogito/cg-Xlib: line 69: 0800: value too great for base (error token is "0800")
Signed-off-by: Chris Wright <chrisw@osdl.org>
--- a/cg-Xlib
+++ b/cg-Xlib
@@ -65,7 +65,9 @@ showdate () {
 	[ "$format" ] || format=-R
 	sec=${date[0]}; tz=${date[1]}
 	if [ "$has_gnudate" ]; then
-	        dtz=${tz/+/}
+	        dtz=${tz/-0/-}
+	        dtz=${dtz/+/}
+	        dtz=${dtz/#0/}
 		lsec=$(($dtz / 100 * 3600 + $dtz % 100 * 60 + $sec))
 	        pdate="$(date -ud "1970-01-01 UTC + $lsec sec" "$format" 2>/dev/null)"
 	else
Previous: Chris Wright
Message 5 of 5 in “[ANNOUNCE] Cogito-0.11.3”
  1. Petr BaudisJun 9, 2005
  2. Konstantin AntselovichJun 9, 2005
  3. Dan HolmsandJun 9, 2005
  4. Chris WrightJun 9, 2005
  5. Chris WrightJun 9, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.