Удалось запустить сабж на FreeBSD со следующими патчами:--- src/charsets.c.orig 2008-11-22 14:56:26.000000000 +0300
+++ src/charsets.c 2008-11-22 14:57:40.000000000 +0300
@@ -29,6 +29,8 @@
#include <stdarg.h>
+#include <assert.h>
+
#include "global.h"
#include "charsets.h"
@@ -305,6 +307,7 @@
int checkIfCodepageUTF(int _cp){
char *cp_name;
if (_cp < 0 ) _cp = 0;
+ assert( codepages != 0);
cp_name = codepages[_cp].id;
if (
(! strncmp(cp_name,"UTF-8",5)) ||
--- src/setup.c.orig 2008-11-22 14:01:54.000000000 +0300
+++ src/setup.c 2008-11-22 14:58:59.000000000 +0300
@@ -653,9 +653,9 @@
load_string( "Misc", "ftp_codepage", "", cpname, sizeof(cpname));
if(cpname[0] != '\0') ftp_codepage=get_codepage_index(cpname);
}
+
+ init_translation_table( source_codepage, display_codepage );
}
-
- init_translation_table( source_codepage, display_codepage );
#endif /* HAVE_CHARSET */
}
--- src/filegui.c.orig 2008-11-22 10:52:50.000000000 +0300
+++ src/filegui.c 2008-11-22 11:13:22.000000000 +0300
@@ -50,7 +50,7 @@
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined (__FreeBSD__)
# include <sys/mount.h>
#else
# include <sys/statfs.h>
Кроме этого, пришлось создать такой симлинк:
# cd /usr/local/mc
# ln -s share etc
Без этого mc не находит свои ini-файлы. Но сабж работает всё равно не вполне правильно. Не отображаются рамки вокруг панелей и окошек, все надписи на английском языке (в оригинальном mc - на русском). Не работает перекодировка в UTF-8. У меня в системе используется KOI8-R:
$ echo $LANG
ru_RU.KOI8-R