Samedi 05 mai 2007, vers 22:14:33 (+0200), Kalle Olavi Niemitalo a
écrit :

> Thank you for your concern.  The patched ELinks 0.12.GIT
> (d1fa336f7f390d9b51456498fac5dda8f54c18a4) appears to open the
> correct gettext catalog in this case, regardless of what the
> current working directory is.  Please see the GDB session below.

[...]

> (gdb) print *str
> $7 = {magic = 777777777, source = 0x81c3550 
> "/home/Kalle/build/i686-pc-linux-gnu/elinks-0.12/src/../po/fi_FI.UTF-8.gmo",
>   length = 73}

You are right.  I missed the fact that "../po/" was appended to the
path to the binary, and not relative to the current working directory.

The only way to abuse this functionality that I can see now is the
improbable situation where the binary is run from some directory that
is not in the source tree, but whose name ends with "src".

        Arnaud

Reply via email to