[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patches for OS/2 (2)
From: |
Bruno Haible |
Subject: |
Re: Patches for OS/2 (2) |
Date: |
Mon, 5 May 2003 12:11:51 +0200 (CEST) |
Eli Zaretskii wrote:
> > 1) Make libintl look for its files in some directory relative to the
> > place where the executable program is installed. For example,
> > if foo.exe is in f:/usr/local/bin, make it so libintl looks for its
> > files in ../share/ relative to where foo.exe lives. This could be
> > implemented by making foo.exe push into environment some variable
> > that libintl would look at, and making f:/usr/local/share the value
> > of that variable. (foo.exe knows where it lives by looking at its
> > argv[0].)
This is indeed roughly how --enable-relocatable works, except that it doesn't
use environment variables (because environment variables are made for
communication between a process and its child processes, not between a
program and its libraries).
On Thursday 14 November 2002, Andreas Buening wrote:
> This is much more complicated because
> b) The source code of every executable that uses libintl would have to
> be modified.
> c) I'm not sure about this but is it guaranteed that argv[0] contains
> a real path and not just "foo"?
If something doesn't work as expected on OS/2, please provide patches to
intl/relocatable.c.
Bruno
- Re: Patches for OS/2 (2),
Bruno Haible <=