Skip site navigation (1) Skip section navigation (2)

Re: Relocatable locale

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Relocatable locale
Date: 2004-05-27 00:59:46
Message-ID: 40B53D82.5020201@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-patches

Bruce Momjian wrote:

>Peter Eisentraut wrote:
>  
>
>>Andrew Dunstan wrote:
>>    
>>
>>>I'm confused. Can you explain the problem more clearly, please? Do we
>>>need to distinguish known apps with a known (relative) message
>>>location, from unknown libpq clients?
>>>      
>>>
>>The problem boils down to the fact that libpq needs to find its data 
>>files (in this case locale data, but it could be anything), but it 
>>doesn't know its own location, so it can't use a relative path 
>>reference as has been proposed.
>>    
>>
>
>I am wondering if we should use environment variables, and have our apps
>use putenv() to set it to the proper relative path.
>  
>

It seems a bit roundabout, but might make sense. Maybe they shouldn't 
override any value already present in the environment, just set it if 
there is nothing there? Then the library could use the environment if 
set, or fall back on a hardcoded path.

cheers

andrew


In response to

Responses

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-05-27 01:08:42
Subject: Re: Relocatable locale
Previous:From: Bruce MomjianDate: 2004-05-27 00:31:13
Subject: Re: Relocatable locale

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group