Package: lusernet.app / 0.4.3-1

pantomime1.2.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Description: Port to Pantomime 1.2.
 A large portion of this patch has been applied upstream in 0.4.3.
Author: Yavor Doganov <yavor@gnu.org>
Bug-Debian: http://bugs.debian.org/489879
Forwarded: no
Last-Update: 2019-01-24
---

--- lusernet.app.orig/ComposeWindowController.m
+++ lusernet.app/ComposeWindowController.m
@@ -448,10 +448,13 @@
 		else
 			[str appendString: [NSString stringWithFormat: @"%@ wrote:\n",[[msg from] address]]];
 
-		if ([[msg content] isKindOfClass: [NSString class]])
+		if ([[msg content] isKindOfClass: [NSData class]])
 		{
-			NSString *content=(NSString *)[msg content];
+			NSString *content=[[NSString alloc]
+                                          initWithData: (NSData *)[msg content]
+                                          encoding: NSUTF8StringEncoding];
 			str=[self _quoteString: content  to: str];
+			[content release];
 		}
 		else
 			[str appendString: @"> (currently) unquoteable content\n"];
--- lusernet.app.orig/MessageViewController.m
+++ lusernet.app/MessageViewController.m
@@ -356,9 +356,12 @@
 		return;
 	}
 
-	if ([p isKindOfClass: [NSString class]] && [ct isEqual: @"text/plain"])
+	if ([p isKindOfClass: [NSData class]] && [ct isEqual: @"text/plain"])
 	{
-		[self _render_article_text: (NSString *)p  to: str];
+		NSString *pt=[[NSString alloc] initWithData: p
+		                     encoding: NSUTF8StringEncoding];
+		[self _render_article_text: pt  to: str];
+		[pt release];
 		return;
 	}