rpms/pan/devel pan-0.14.2.91-linewrap.patch, NONE, 1.1 pan.spec, 1.4, 1.5

Michael A. Peters (mpeters) fedora-extras-commits at redhat.com
Fri Sep 23 05:33:42 UTC 2005


Author: mpeters

Update of /cvs/extras/rpms/pan/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9651

Modified Files:
	pan.spec 
Added Files:
	pan-0.14.2.91-linewrap.patch 
Log Message:
Adding patch to cvs


pan-0.14.2.91-linewrap.patch:

--- NEW FILE pan-0.14.2.91-linewrap.patch ---
--- patch-text-massager.c::wrap begins here ---
--- pan/base/text-massager.c.orig	Mon Jan 26 00:51:26 2004
+++ pan/base/text-massager.c	Mon Jan 26 00:55:48 2004
@@ -250,23 +250,29 @@
 	char * pch;
 	char * line_start;
 	char * end;
+	int    pos;
 
 	/* walk through the entire string */
 	linefeed_here = NULL;
-	for (line_start=pch=str->str, end=line_start+str->len; pch!=end; )
+	for (pos = 0, line_start=pch=str->str, end=line_start+str->len; pch<end; )
 	{
 		/* a linefeed could go here; remember this space */
-		if (isspace((guchar)*pch) || *pch=='\n')
+		if (g_unichar_isspace(g_utf8_get_char (pch)) || *pch=='\n')
 			linefeed_here = pch;
 
 		/* line's too long; add a linefeed if we can */
-		if (pch-line_start>=column && linefeed_here!=NULL)
+		if (pos>=column && linefeed_here!=NULL)
 		{
 			*linefeed_here = '\n';
 			pch = line_start = linefeed_here + 1;
 			linefeed_here = NULL;
+			pos = 0;
+		}
+		else 
+		{
+			pch = g_utf8_next_char (pch);
+			++ pos;
 		}
-		else ++pch;
 	}
 }
 
--- patch-text-massager.c::wrap ends here ---


Index: pan.spec
===================================================================
RCS file: /cvs/extras/rpms/pan/devel/pan.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- pan.spec	11 Sep 2005 11:38:16 -0000	1.4
+++ pan.spec	23 Sep 2005 05:33:40 -0000	1.5
@@ -1,7 +1,7 @@
 Summary: A GNOME/GTK+ news reader for X
 Name: pan
 Version: 0.14.2.91
-Release: 3.1%{?dist}
+Release: 3.2%{?dist}
 Epoch: 1
 License: GPL
 Group: Applications/Internet
@@ -83,6 +83,9 @@
 %{_datadir}/applications/fedora-pan.desktop
 
 %changelog
+* Thu Sep 22 2005 Michael A. Peters <mpeters at mac.com> - 1:0.14.2.91-3.2
+- forgot to commit patch to cvs in devel branch.
+
 * Sun Sep 11 2005 Michael A. Peters <mpeters at mac.com> - 1:0.14.2.91-3.1
 - added patch12 to fix bug 165626
 




More information about the fedora-extras-commits mailing list