<div dir="ltr"><div><div>I think we just want a configure option that makes -:t8,f8,-8 the default to start with.<br></div><div><br></div><br></div>-- vyzo<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 15, 2017 at 5:15 PM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you want:<br>
<br>
1) the compiler to accept source code in UTF-8 character encoding?<br>
2) compiled programs to read and write characters using UTF-8 character encoding?<br>
<br>
#1 can be done with “gsc -:f8 …”<br>
#2 can be done by starting your program with the shebang “#! /usr/bin/env gsi -:t8,f8,-8”.<br>
<br>
A configure option could be added to set the default character encoding.<br>
<br>
Should the system obey the LC_CTYPE or LC_ALL variable?  Good question!  Is this “expected” behavior?  It wouldn’t be hard to implement, and still allow overriding with the runtime options.  However, gsc and gsi will become more fragile and dependent on the run time environment…<br>
<br>
What’s best?<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> On Jul 27, 2017, at 3:40 PM, Faré <<a href="mailto:fahree@gmail.com">fahree@gmail.com</a>> wrote:<br>
><br>
> Is it possible to build Gambit such that UTF-8 is the default for I/O?<br>
> Or should it heed the LC_CTYPE or LC_ALL variable?<br>
><br>
> I had a bug while compiling gerbil code that vyzo traced to<br>
> disagreement between I/O options used by gambit and gerbil. The<br>
> workaround was to export GAMBOPT=t8,f8,-8 rather than fight to<br>
> propagate the proper options to gsc. I would like to build gambit with<br>
> these options as the default, so I can distribute a version that works<br>
> out of the box.<br>
><br>
> —♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• <a href="http://fare.tunes.org" rel="noreferrer" target="_blank">http://fare.tunes.org</a><br>
> He wa'n't no common dog, he wa'n't no mongrel; he was a composite.<br>
> A composite dog is a dog that is made up of all the valuable qualities<br>
> that's in the dog breed — kind of a syndicate; and a mongrel is made up<br>
> of all riffraff that's left over.  — Mark Twain<br>
> ______________________________<wbr>_________________<br>
> Gambit-list mailing list<br>
> <a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://webmail.iro.umontreal.<wbr>ca/mailman/listinfo/gambit-<wbr>list</a><br>
<br>
______________________________<wbr>_________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://webmail.iro.umontreal.<wbr>ca/mailman/listinfo/gambit-<wbr>list</a><br>
</div></div></blockquote></div><br></div>