From 00db3164ad052ffeb767458fc4c7fdb34e6c6c61 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Mar 27 2008 13:33:05 +0000 Subject: - add fix for #426756 --- diff --git a/mc-utf8.patch b/mc-utf8.patch index 6344ab6..bbb30a7 100644 --- a/mc-utf8.patch +++ b/mc-utf8.patch @@ -5392,3 +5392,32 @@ diff -up mc-4.6.2-pre1/acinclude.m4.utf8 mc-4.6.2-pre1/acinclude.m4 if test x$with_screen = xslang; then AC_DEFINE(HAVE_SYSTEM_SLANG, 1, +diff -Nrbu mc-4.6.1a/src/view.c mc-4.6.1a-OK/src/view.c +--- mc-4.6.2-pre1/src/view.c 2006-05-05 19:01:49.000000000 +0400 ++++ mc-4.6.2-pre1/src/view.c 2006-05-05 18:39:24.000000000 +0400 +@@ -2006,16 +2006,19 @@ + if (col >= view->dpy_text_column + && col - view->dpy_text_column < width) { + widget_move (view, top + row, left + (col - view->dpy_text_column)); +-#ifndef UTF8 ++#ifdef UTF8 ++ if (SLsmg_is_utf8_mode ()) { ++ if (!iswprint (wc)) ++ wc = '.'; ++ tty_print_char (wc); ++ } else { ++#endif + c = convert_to_display_c (c); + if (!is_printable (c)) + c = '.'; + tty_print_char (c); +-#else +- wc = convert_to_display_c (wc); +- if (!iswprint (wc)) +- wc = '.'; +- tty_print_char (wc); ++#ifdef UTF8 ++ } + #endif + } + col++;