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
Afficher les réponses par date
You need to switch on unicode output for the output medium (gsc -t8) and maybe also specify the maximum unicode character number that the writer will accept to write. Please report back when you figured.
2016-06-26 10:34 GMT+08:00 Vijay Mathew vijay.the.lisper@gmail.com:
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
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list