Re: crash in guile-sqlite3

2012-05-01 Thread Daniel Krueger
Oh, I'm sorry, I missed the fact that all bits in the pointer would be set. Correct would be this: (make-pointer (bit-extract (lognot 0) 0 (* 8 (sizeof '* So, okay, this may not be a better solution :D - Daniel On Tue, May 1, 2012 at 5:05 PM, Daniel Krueger wrote: > Hi, >

Re: crash in guile-sqlite3

2012-05-01 Thread Daniel Krueger
Hi, I just wanted to note that it should work just to use (make-pointer #xff). - Daniel On Tue, May 1, 2012 at 5:01 PM, Joonas Sarajärvi wrote: > 2012/5/1 Joonas Sarajärvi : > >> However, thank you for taking a look at the problem. The change you >> placed at >> git://gitorious.org/~sunjoong/g

Re: I'm looking for a method of converting a string's character encoding

2012-04-30 Thread Daniel Krueger
On Sat, Apr 28, 2012 at 10:55 PM, Eli Zaretskii wrote: > One notable example is when the original encoding was determined > incorrectly, and the application wants to "re-decode" the string, when > its external origin is no longer available. Okay, but then I would suggest either if you know you're

Re: I'm looking for a method of converting a string's character encoding

2012-04-28 Thread Daniel Krueger
Hi, i think there shouldn't be any transcoding of guile's strings, as strings are internal representation of characters, no matter how they are encoded. So the only time when encoding matters is when it passes it's `internal boundarys', i mean if you write the string to a port or read from a port