Translations in distributions 2

From: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Translations in distributions 2
Date: 2004-01-09 09:35:34
Message-ID: Pine.LNX.4.44.0401091024540.13405-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tommi Maekitalo 2004-01-09 10:19:45 Re: psql \d option list overloaded
Previous Message Peter Eisentraut 2004-01-09 08:25:22 Re: Translations in the distributions