rpms/mc/devel mc-utf8.patch,1.27,1.28
Jindrich Novy (jnovy)
fedora-extras-commits at redhat.com
Thu Mar 27 13:33:14 UTC 2008
Author: jnovy
Update of /cvs/extras/rpms/mc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21993
Modified Files:
mc-utf8.patch
Log Message:
- add fix for #426756
mc-utf8.patch:
Index: mc-utf8.patch
===================================================================
RCS file: /cvs/extras/rpms/mc/devel/mc-utf8.patch,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- mc-utf8.patch 25 Feb 2008 15:01:14 -0000 1.27
+++ mc-utf8.patch 27 Mar 2008 13:33:05 -0000 1.28
@@ -5392,3 +5392,32 @@
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++;
More information about the fedora-extras-commits
mailing list