Re: More message encoding woes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: More message encoding woes
Дата
Msg-id 616.1239112753@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: More message encoding woes  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Ответы Re: More message encoding woes  (Hiroshi Inoue <inoue@tpf.co.jp>)
Список pgsql-hackers
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
> Hiroshi Inoue wrote:
>> What is wrong with checking if the codeset is valid using iconv_open()?

> That would probably work as well. We'd have to decide what we'd try to 
> convert from with iconv_open().

The problem I have with that is that you are now guessing at *two*
platform-specific encoding names not one, plus hoping there is a
conversion between the two.

If we knew the encoding name embedded in the .mo file we wanted to use,
then it would be sensible to try to use that as the source codeset.

> GNU gettext() uses iconv, but I'm 
> not sure if that's true for all gettext() implementations.

Yeah, that's another problem.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: a few crazy ideas about hash joins
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Path separator