Translations in distributions 2

Поиск
Список
Период
Сортировка
От Dennis Björklund
Тема Translations in distributions 2
Дата
Msg-id Pine.LNX.4.44.0401091024540.13405-100000@zigo.dhs.org
обсуждение исходный текст
Список pgsql-hackers
I've made some tests to see what works and what does not. I downloaded pg
7.3.4 (which is more or less what is used in fedora) and current cvs. Both
compiled with the same flags and run in the same way.

pg 7.3.4
--------

Running LC_ALL=sv_SE postmaster   and LC_ALL=sv_SE.UTF-8 postmaster

both produces messages with same encoding.

pg 7.5 (cvs)
------------

Running LC_ALL=sv_SE postmaster   and LC_ALL=sv_SE.UTF-8 postmaster
                         
 
produces messages with different encodings, either latin1 or utf-8 
depending on the environment variable.                                                                               
The only conclusion I have so far is that something have indeed changed in
pg after 7.3 and maybe in the future it will work a little better in
fedora and other dists.

The problems with client/server having different encodings still remains
to be solved. That is probably solvable by simply translating the messages
to client_encoding before sending. It does not sound very hard. The
language used should however also be that of the client and it might need
(a lot) more work.

A last question. Why is --enable-nls needed? Most other programs default
to that.

-- 
/Dennis Björklund



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Translations in the distributions
Следующее
От: Tommi Maekitalo
Дата:
Сообщение: Re: psql \d option list overloaded