guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with wide characters on upgrading to guile 2.x


From: Richard Shann
Subject: Re: Problem with wide characters on upgrading to guile 2.x
Date: Wed, 11 Sep 2013 17:36:49 +0100

On Sat, 2013-09-07 at 11:07 +0200, Andy Wingo wrote:
> On Mon 02 Sep 2013 10:48, Richard Shann <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]