I wrote:

MC-4.6.1: patch available from Ubuntu, investigating. Previous patches either were incomplete or introduced regressions in non-UTF-8 locales.

Investigation done, the new patch is good. Converted to LFS style and made available at http://www.linuxfromscratch.org/~alexander/patches2/mc-4.6.1-utf8-1.patch

The patched version of MC works well both in traditional 8-bit and in UTF-8 locales.

This patch doesn't include the difference due to the (required) recoding of MC documentation to UTF-8, so the following additional commands are needed after patching:

iconv -f ISO-8859-1 -t UTF-8 lib/mc.hint > tmp && mv tmp lib/mc.hint
iconv -f ISO-8859-1 -t UTF-8 lib/mc.hlp > tmp && mv tmp lib/mc.hlp
iconv -f ISO-8859-1 -t UTF-8 lib/mc.hint.es > tmp && mv tmp lib/mc.hint.es
iconv -f ISO-8859-1 -t UTF-8 lib/mc.hlp.es > tmp && mv tmp lib/mc.hlp.es
iconv -f ISO-8859-1 -t UTF-8 lib/mc.hint.it > tmp && mv tmp lib/mc.hint.it
iconv -f ISO-8859-1 -t UTF-8 lib/mc.hlp.it > tmp && mv tmp lib/mc.hlp.it
iconv -f ISO-8859-1 -t UTF-8 lib/mc.hint.nl > tmp && mv tmp lib/mc.hint.nl
iconv -f ISO-8859-2 -t UTF-8 lib/mc.hint.cs > tmp && mv tmp lib/mc.hint.cs
iconv -f ISO-8859-2 -t UTF-8 lib/mc.hint.hu > tmp && mv tmp lib/mc.hint.hu
iconv -f ISO-8859-2 -t UTF-8 lib/mc.hlp.hu > tmp && mv tmp lib/mc.hlp.hu
iconv -f ISO-8859-2 -t UTF-8 lib/mc.hint.pl > tmp && mv tmp lib/mc.hint.pl
iconv -f ISO-8859-2 -t UTF-8 lib/mc.hlp.pl > tmp && mv tmp lib/mc.hlp.pl
iconv -f ISO-8859-5 -t UTF-8 lib/mc.hint.sr > tmp && mv tmp lib/mc.hint.sr
iconv -f ISO-8859-5 -t UTF-8 lib/mc.hlp.sr > tmp && mv tmp lib/mc.hlp.sr
iconv -f ISO-8859-5 -t UTF-8 lib/mc.menu.sr > tmp && mv tmp lib/mc.menu.sr
iconv -f koi8-r -t UTF-8 lib/mc.hint.ru > tmp && mv tmp lib/mc.hint.ru
iconv -f koi8-r -t UTF-8 lib/mc.hlp.ru > tmp && mv tmp lib/mc.hlp.ru
iconv -f koi8-u -t UTF-8 lib/mc.hint.uk > tmp && mv tmp lib/mc.hint.uk
iconv -f big5 -t UTF-8 lib/mc.hint.zh > tmp && mv tmp lib/mc.hint.zh

At runtime, MC will convert this documentation back from UTF-8 to the locale encoding.

Requires change of compilation instructions:

S-Lang 2.x is now a required dependency

The CPPFLAGS="-DUTF8" environment variable (to be inserted before ./configure) and the --with-screen=slang option are now mandatory.

The rest of the text in the book applies to the patched version as well.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to