Package: mc Version: 1:4.6.1-2 Severity: normal
Compiling mc without UTF8 support ("UTF8" macro undefined) fails. The attached patch solves it. -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.4.33-pre3 Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R) Versions of packages mc depends on: ii libc6 2.3.2.ds1-22sarge3 GNU C Library: Shared libraries an ii libglib2.0-0 2.6.4-1 The GLib library of C routines ii libgpmg1 1.19.6-19sarge1 General Purpose Mouse - shared lib ii slang1 1.4.9dbs-8 The S-Lang programming library - r -- no debconf information
diff -urN a/edit/edit.c b/edit/edit.c --- a/edit/edit.c 2006-05-14 13:30:34.000000000 +0400 +++ b/edit/edit.c 2006-05-14 13:28:11.000000000 +0400 @@ -661,7 +661,9 @@ edit_move_display (edit, line - 1); edit_move_to_line (edit, line - 1); } +#ifdef UTF8 edit->charpoint = 0; +#endif return edit; }