lilypond-devel
[Top][All Lists]
Advanced

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

Re: How do I change LOCALEDIR?


From: Marnen Laibow-Koser
Subject: Re: How do I change LOCALEDIR?
Date: Tue, 3 Mar 2020 11:07:47 -0500

On Tue, Mar 3, 2020 at 7:40 AM Werner LEMBERG <address@hidden> wrote:

> >> If I understand the code correctly (in file `relocate.cc`), the two
> >> calls to `bindtextdomain` happen before relocation files are
> >> read.[*] In other words, the `LILYPOND_LOCALEDIR` environment
> >> variable is honoured but a corresponding assignment in relocation
> >> files are ignored (for the lilypond binary itself – child programs
> >> do get the updated environment variable).
> >>
> >> Maybe this approach should be changed?
> >
> > Perhaps!  What is the point of overriding the environment setting
> > for LOCALEDIR?  Does LilyPond itself use that setting, or do only
> > the child programs use it?
>
> Please try the attached patch.  It now calls `bindtextdomain` a third
> time to take care of setting `LILYPOND_LOCALEDIR` in the relocation
> files.


I’d really rather not patch the code if I don’t have to, and three attempts
to do anything seems smelly to me (it suggests that the logic flow is in
the wrong order), but I’ll give the patch a try and see if it fixes the
proximate issue.  Thanks.

    Werner


Best,

>
> --
Marnen Laibow-Koser address@hidden http://www.marnen.org Sent from Gmail
Mobile


reply via email to

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