Subject: Enhanced locale support for 1.4
To: None <tech-misc@netbsd.org, tech-userlevel@netbsd.org>
From: Kaleb S. KEITHLEY <kaleb@ics.com>
List: tech-userlevel
Date: 06/14/1999 08:03:18
I wanted better support for locales, so I integrated new locale support
into my 1.4 box's libc based on the FreeBSD 3.2 locale support.

If anyone else would like this, I've put the results at
ftp://ftp.netbsd.org/pub/incoming/loc.tar.good which contains the work
I've done. This tar file contains two files: locale.patch.gz and
locale.tar.gz.

The tar file has replacements for /usr/src/lib/libc/{locale,time} and
adds two utility programs: /usr/src/usr.bin/{colldef,mklocale} and a
third: usr/src/usr.bin/sharelocale which installs LC_TIME files. There
are dozens of locales supported including support for the Euro in the
8859-15 locales. There's also a KOI8-R locale for Russian Cyrillic
users. The locale.patch file is context diff which can be applied with
the 'patch' utility -- it tweaks several other files that are affected
by this change.

Unfortunately the change is not binary compatible with the prior libc so
so the patch bumps the major version of libc. (Unfortunately so many
things use the ctype.h macros that I would have had to bump the major
versions on most every other shared lib. :-( That might still be the
right thing to do.) I've also not made any attempt to do anything with
the old message files which are now orphaned by this change. (There
weren't that many anyway.)

--
Kaleb