|
From: | Kon Lovett |
Subject: | [Chicken-users] Re: Problem w/ Utf8 egg: couldn't load case-map-1.dat |
Date: | Wed, 7 Sep 2005 10:06:51 -0700 |
Hi,The exception is raised in (read-block! ...): (u32vector-set! vec i (read-binary-uint32 port)) (read-binary-uint32 ...) is returning a negative #, (u32vector-set! ...) only accepts positive #
There isn't an intrinsic signed vs. unsigned property for numbers. So how can (u32vector-set! ...) accept 0 to (2^32)-1 when no way to distinguish from -(2^31) to (2^31)-1 by the bit-pattern of the value alone?
Thanks, Kon On Sep 5, 2005, at 3:58 PM, Kon Lovett wrote:
Hi,On my system (MacOS X 10.3.9, G4), w/ chicken in the default configuration, the utf8 egg case-map.scm (*char-case-table-1* ...) procedure fails w/ the "couldn't load ..." msg.The actual exception caught in the procedure dissects as "argument may not be negative," which looks like something from srfi-4.scm. However re-writting the procedure to print out intermediate values:File: /usr/local/lib/chicken/case-map-1.dat | Size: 24208 | Qtr-Size: 6052tells me everything is just fine. Which from my reading of the code says the problems is in (read-block! ...), but I don't see it.Help please. Thank you, Kon
[Prev in Thread] | Current Thread | [Next in Thread] |