On Mon, Jun 19, 2006 at 05:58:46PM +0200, Leonard den Ottolander wrote: > Here is how I made this locale/charset combination available on my > system: > > # mkdir /usr/local/lib/locale > # mkdir -p /usr/local/share/i18n/charmaps > # zcat /usr/share/i18n/charmaps/CP1251.gz \ > > /usr/local/share/i18n/charmaps/CP1251 > # localedef -f /usr/local/share/i18n/charmaps/CP1251 \ > -i /usr/share/i18n/locales/mk_MK /usr/local/lib/locale/mk_MK.cp1251 > # localedef --add-to-archive /usr/local/lib/locale/mk_MK.cp1251 That's 5 times more commands than you really need: localedef -f CP1251 -i mk_MK /tmp/mk_MK.cp1251 will create the locale and (as --no-archive was not specified) adds it to the locale archive too. localedef has /usr/share/i18n/.../ search paths compiled in and handles gunzipping as well. Jakub