Re: Relocatable locale

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Relocatable locale
Дата
Msg-id 200405270531.i4R5V6226885@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Relocatable locale  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Relocatable locale  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > I am wondering if we should use environment variables, and have our
> > apps use putenv() to set it to the proper relative path.
>
> The problem isn't our applications, it's someone else's applications.
> Are you saying that from now on, setting certain environment variables
> is part of the required startup for libpq programs?  Remember that on
> Windows in generall all installations are relocated away from the
> default location.

Well, if they want locale-specific error messages from libpq in their
applications, the have to supply those locale files somehow.  They could
supply them in the same directory as their binaries and use putenv()
and find_my_exec().

Sure, it is a hack, but what other option do we have?  Do we somehow
move the locale files into the library?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-patches по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Relocatable locale
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: .cvsignore update...