KOI8-U support (was Re: [BUGS] create database warning)

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Cc: Mykola Stryebkov <mykola(dot)stryebkov(at)gmail(dot)com>
Subject: KOI8-U support (was Re: [BUGS] create database warning)
Date: 2009-02-06 17:37:45
Message-ID: 498C7569.3060204@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Peter Eisentraut wrote:
> Mykola Stryebkov wrote:
>> template1=# create database inf with encoding 'windows-1251';
>> WARNING: could not determine encoding for locale "uk_UA.KOI8-U":
>> codeset is "KOI8-U"
>> DETAIL: Please report this to <pgsql-bugs(at)postgresql(dot)org>.
>> CREATE DATABASE
>> template1=#
>>
>> What's wrong with it?
>
> PostgreSQL does not support the KOI8-U encoding. You could try to use
> uk_UA.utf8.

We get these complaints about missing KOI8-U support once in a while.
Attached is a patch to add KOI8-U support with UTF-8 conversion. It
should be enough to help this class of users, but more fancy features
such as conversion between KOI8U and KOI8R or KOI8U and various WIN
encodings is not there yet. I propose to add this patch to PostgreSQL 8.4.

Mykola, if you have a 8.3 or 8.4 source code lying around, please test
this patch.

Attachment Content-Type Size
koi8u-support.patch text/x-diff 13.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2009-02-06 21:40:00 Re: KOI8-U support (was Re: [BUGS] create database warning)
Previous Message Peter Eisentraut 2009-02-06 14:14:56 Re: create database warning

Browse pgsql-hackers by date

  From Date Subject
Next Message Ron Mayer 2009-02-06 17:40:50 Re: new GUC var: autovacuum_process_all_tables
Previous Message David E. Wheeler 2009-02-06 17:35:18 Re: Mention CITEXT in the FAQ