From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | A rough roadmap for internationalization fixes |
Date: | 2003-11-24 19:05:27 |
Message-ID: | Pine.LNX.4.44.0311241951500.21306-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
OK, I've been spreading rumours about fixing the internationalization
problems, so let me make it a bit more clear. Here are the problems that
need to be fixed:
- Only one locale per process possible.
- Only one gettext-language per process possible.
- lc_collate and lc_ctype need to be held fixed in the entire cluster.
- Gettext relies on iconv character set conversion, which relies on
lc_ctype, which leads to a complete screw-up in the server because of
the previous item.
- Locale fixed per cluster, but encoding fixed per database, unware
of each other, don't get along.
- No support for upper/lower with multibyte encoding.
- Implementation of Unicode horribly incomplete.
These are all dependent on each other and sort of flow into each other.
Here is a proposed ordering of steps toward improving the situation:
1. Take out the character set conversion routines from the backend and
make them a library of their own. This could possibly be modelled after
iconv, but not necessarily. Or we might conclude that we can just use
iconv in the first place.
2. Reimplement gettext to use 1. and allow switching of language and
encoding at run-time.
3. Implement Unicode collation algorithm and character classification
routines that are aware of 1. Use that in place of system locale
routines.
4. Allow choice of locale per database. (This should be fairly easy after
3.)
5. Allow choice of locale per column and implement collation coercion
according to SQL standard.
This could easily take a long time, but I feel that even if we have to
stop after 2., 3., or 4. at feature freeze, we'd be a lot farther.
Comments? Anything else that needs fixing?
--
Peter Eisentraut peter_e(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2003-11-24 19:13:30 | Re: Can't initdb, libdir points to static location |
Previous Message | Neil Conway | 2003-11-24 18:32:10 | Re: Using -Wshadow |