Hi Craig,

On 21 Jun., 23:32, Craig Citro <craigci...@gmail.com> wrote:
> Hi Georg,
>
> > The root cause was the patch for trac #2513 which was incorporated in
> > Sage-4.0.2.alpha4, concerning the setting (or not ...) of the variable
> > LANG in the sage-env script.
>
> > I'll prepare a nice patch with some explanations for the R.spkg's
> > "spkg-install" script to use 'LANG="en_US.UTF-8"  && export LANG', and
> > attach it to the yet-to-be-created trac ticket for this, but this
> > might take more than a day.
>
> Oops. I was hoping that since clisp was the culprit that got LANG
> added in the first place, this problem might just disappear since
> we've switched to ecl -- no such luck, I guess. Now, I'm curious about
> the issues R has -- do you need LANG to be set whenever you *use* R,
> or just when you run the spkg-install? Because if it's the former,
> we're back to square one with #2513 ...
>

yes the problem turned out not be one of the build process, but one of
usage, i.e. during call/execution of Sage.

> Another unfortunate possibility is that R isn't the only program that
> has an issue with this -- once you add it to the spkg-install for R,
> does the sage install finish without any trouble?
>

Actually after experimenting without success with "init_code" and
"_start()" in the expect interface of R, only two solutions seemed to
be left. One was to build R with the option "---no-nls" (or something
like that), i.e. cripple it once and for all so that the english
language is the only known to R.

I chose the other way (patch is up for review at #6379, hint, hint),
changing the Sage Library code where the message(s) given back by R
are parsed. Now this (hopefully) is done locale-independent, at least
it works for english and german locale alike (and should for any
locale).

In the end, the patch at #2513 definitely was one in the right
direction.

If not necessary, we should not rule out the usage of other locales,
and it turned out not to be necessary in this special case.

> -cc

Cheers,
gsw
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to