25 Jui
2016
25 Jui
'16
22:34
How can I make gambit to print a Unicode character's symbol (or glyph)? For example, I want to display the Unicode infinity symbol ∞ (#\u221E). Calling `(display #\u221E)` or `(print #\u221E)` throws the REPL into an infinite loop. (This happens for most Unicode literals I tried, not just the infinity symbol :-)) $ gsc Gambit v4.8.4
(print #\u221E) *** ERROR IN ##wr-ch -- Can't convert to C char-string (write-char #\*** ERROR IN ##wr-ch -- Can't convert to C char-string (write-char #\*** ERROR IN ##wr-ch -- Can't convert to C char-string (write-char #\*** ERROR IN ##wr-ch -- Can't convert to C char-string (write-char #\*** ERROR IN ##wr-ch -- Can't convert to C char-string
Thanks, --- Vijay