Translations in distributions 2 - Mailing list pgsql-hackers

From Dennis Björklund
Subject Translations in distributions 2
Date
Msg-id Pine.LNX.4.44.0401091024540.13405-100000@zigo.dhs.org
Whole thread Raw
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Translations in the distributions
Next
From: Tommi Maekitalo
Date:
Subject: Re: psql \d option list overloaded