]> git.ipfire.org Git - thirdparty/gettext.git/commit
intl: Fix that /@unixroot prefix is not working on OS/2 kLIBC
authorKO Myung-Hun <komh78-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Thu, 1 Dec 2016 09:19:56 +0000 (18:19 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 5 Dec 2016 08:51:52 +0000 (09:51 +0100)
commit7eb592d6a7071a4d8d33f15668c33da79ec42780
treecbc57ffb19a3d9b170391ce65fdc9cced72d9993
parentf6adb4772d81383fc68a3887360b898f6cf2877a
intl: Fix that /@unixroot prefix is not working on OS/2 kLIBC

OS/2 kLIBC has a feature to rewrite some path components. For example,
'/@unixroot' is replaced with a value of $UNIXROOT if it is.

So prepending a drive letter to the path starting with '/' makes the
path starting with '/@unixroot' to 'x:/@unixroot' which is unexpected.

This will breaks the behavior of some programs depending on /@unixroot
prefix.

* gettext-runtime/intl/bindtextdom.c (BINDTEXTDOMAIN): Do not touch
dirname if it is started with '/@unixroot'.
* gettext-runtime/intl/relocatable.c (relocate): Do not touch pathname
if it is started with '/@unixroot'.
gettext-runtime/intl/bindtextdom.c
gettext-runtime/intl/relocatable.c