[gambit-list] Unicode silliness

Bradley Lucier lucier at math.purdue.edu
Thu Jan 19 21:47:29 EST 2017


> On Jan 19, 2017, at 9:11 PM, Marc Feeley <feeley at iro.umontreal.ca> wrote:
> 
> Many of the Scheme standard procedures aren’t documented.

I would hardly call Gambit’s “load” procedure “standard”.

> By the way, for load to use UTF-8 encoding for the files it loads, you need to add -:f8 option to gsi.

You read my mind.  So you need

gsi -:t8,f8

Or, I suppose you could use

[Media-Mac-mini-3:~] lucier% gsi -:t8
Gambit v4.8.6

> (load (list path: "hamburger.scm" char-encoding: 'UTF-8))
"/Users/lucier/hamburger.scm"
> 🍔 
#<procedure #2 🍔>
> (pp 🍔 )
(lambda (x) (if (< x 2) 1 (+ (🍔 (- x 2)) (🍔 (- x 1)))))

which also seems to work.

So maybe the documentation could just say that the form of load is

(load path-or-settings)

Brad


More information about the Gambit-list mailing list