On Sat, 2013-09-07 at 11:07 +0200, Andy Wingo wrote: > On Mon 02 Sep 2013 10:48, Richard Shann <richard.sh...@virgin.net> writes: > > > On Thu, 2013-08-22 at 12:14 -0700, Mike Gran wrote: > >> >> 2. In the inner_main of your scm_with_guile call, > >> > >> >> try calling scm_setlocale. Maybe something like this? > >> >> (This shouldn't make a difference, I think. > >> >> But, if it does, it says something interesting.) > >> >> > >> >> scm_setlocale( scm_variable_ref(scm_c_lookup("LC_ALL")), > >> > scm_from_locale_string("") ); > >> > > >> >> If that actually works, lemme know. [...] > > > > ERROR: In procedure catch-closure: > > ERROR: In procedure setlocale: Invalid argument > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< > > const char prog[] = > "(catch #t > (lambda () (setlocale LC_ALL \"\")) > (lambda _ > (display \"Locale not supported by the C library. > Falling back to default \\\"C\\\" locale.\\n\" > (current-error-port))))"; > scm_c_eval_string (prog); > > Andy
Thank you! That does nicely. Richard