SOURCES: mc-utf8-view.patch (NEW) - temporary iso8859-2 hack

arekm arekm at pld-linux.org
Tue Oct 18 08:38:20 CEST 2005


Author: arekm                        Date: Tue Oct 18 06:38:20 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- temporary iso8859-2 hack

---- Files affected:
SOURCES:
   mc-utf8-view.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/mc-utf8-view.patch
diff -u /dev/null SOURCES/mc-utf8-view.patch:1.1
--- /dev/null	Tue Oct 18 08:38:20 2005
+++ SOURCES/mc-utf8-view.patch	Tue Oct 18 08:38:15 2005
@@ -0,0 +1,29 @@
+diff -urbB mc-4.6.1.org/src/view.c mc-4.6.1/src/view.c
+--- mc-4.6.1.org/src/view.c	2005-10-18 08:33:40.629598000 +0200
++++ mc-4.6.1/src/view.c	2005-10-18 08:35:28.833149112 +0200
+@@ -1166,12 +1166,15 @@
+ 		&& col < width - view->start_col) {
+ 		view_gotoyx (view, row, col + view->start_col);
+ 
+-#ifndef UTF8
++#ifdef UTF8
++		if (!SLsmg_Is_Unicode) {
++#endif
+ 		c = convert_to_display_c (c);
+ 		if (!is_printable (c))
+ 		    c = '.';
+ 		view_add_character (view, c);
+-#else /* UTF8 */
++#ifdef UTF8
++		} else {
+ 		if (!iswprint (wc))
+ 		    wc = '.';
+ 		view_add_character (view, wc);
+@@ -1181,6 +1184,7 @@
+ 		    if (cw > 1)
+ 			col+= cw - 1;
+ 		}
++		}
+ #endif /* UTF8 */
+ 
+ 	    }
================================================================



More information about the pld-cvs-commit mailing list