[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/slang/devel slang-refresh.patch,NONE,1.1 slang.spec,1.22,1.23



Author: praszyk

Update of /cvs/dist/rpms/slang/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv12568

Modified Files:
	slang.spec 
Added Files:
	slang-refresh.patch 
Log Message:
Patch to resolve the problem with displaying the 'x' character in the latin2 mode (#139127)


slang-refresh.patch:
 sldisply.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

--- NEW FILE slang-refresh.patch ---
--- slang-1.4.9.utf8/src/sldisply.c
+++ slang-1.4.9.utf8/src/sldisply.c
@@ -1432,7 +1432,11 @@
 #else
 #define COLOR_OF(x) (((x)&COLOR_MASK)>>8)
 #endif
+#ifdef UTF8
+# define CHAR_OF(x) ((x)&0x80FFFFFF)
+#else
 #define CHAR_OF(x) ((x)&0x80FF)
+#endif
 
 #if SLTT_HAS_NON_BCE_SUPPORT
 #ifdef UTF8
@@ -1471,14 +1475,8 @@
     :  (Ansi_Color_Map[COLOR_OF(a)].mono == Ansi_Color_Map[COLOR_OF(b)].mono))
 #endif
 
-#ifdef UTF8
-#define CHAR_EQS(a, b) ((a) == (b)\
-			|| (SLSMG_EXTRACT_CHAR(a) == SLSMG_EXTRACT_CHAR(b)\
-			    && COLOR_EQS((a), (b))))
-#else
 #define CHAR_EQS(a, b) (((a) == (b))\
 			|| ((CHAR_OF(a)==CHAR_OF(b)) && COLOR_EQS(a,b)))
-#endif
 
 /* The whole point of this routine is to prevent writing to the last column
  * and last row on terminals with automatic margins.


Index: slang.spec
===================================================================
RCS file: /cvs/dist/rpms/slang/devel/slang.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- slang.spec	18 Mar 2005 07:16:02 -0000	1.22
+++ slang.spec	18 Aug 2005 13:11:32 -0000	1.23
@@ -1,7 +1,7 @@
 Summary: The shared library for the S-Lang extension language.
 Name: slang
 Version: 1.4.9
-Release: 17
+Release: 18
 License: GPL
 Group: System Environment/Libraries
 Source: ftp://space.mit.edu/pub/davis/slang/v1.4/slang-%{version}.tar.bz2
@@ -11,6 +11,7 @@
 Patch3: slang-1.4.5-utf8-segv.patch
 Patch4: slang-utf8-fix.patch
 Patch5: slang-1.4.9-gcc4.patch
+Patch6: slang-refresh.patch
 Url: http://www.s-lang.org/
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: libtool, libtermcap-devel
@@ -46,6 +47,7 @@
 %patch3 -p1 -b .segv
 %patch4 -p1 -b .utf8-fix
 %patch5 -p1 -b .gcc4
+%patch6 -p1 -b .refresh
 
 cp %{SOURCE2} .
 
@@ -88,6 +90,10 @@
 %{_includedir}/slang
 
 %changelog
+* Thu Aug 18 2005 Petr Raszyk <praszyk redhat com> - 1.4.9-18
+- Patch to resolve the problem with displaying the 'x' character
+  in the latin2 mode (#139127) 
+
 * Fri Mar 18 2005 Petr Rockai <prockai redhat com> - 1.4.9-17
 - Patch to compile with gcc4 by Robert Scheck (#151029). (Weeird,
   probably on march 2nd the used buildroot wasn't updated with


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]