[840] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r833 - branches/barnowl_unicode/owl

daemon@ATHENA.MIT.EDU (asedeno@MIT.EDU)
Thu Oct 29 18:10:17 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: asedeno@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Fri, 11 Jan 2008 15:32:14 -0500 (EST)

Author: asedeno
Date: 2008-01-11 15:32:14 -0500 (Fri, 11 Jan 2008)
New Revision: 833

Modified:
   branches/barnowl_unicode/owl/owl.c
   branches/barnowl_unicode/owl/owl.h
Log:

* drop unused struct member
* char * != char

This fixes unicode input, which was broken as of r811.

Modified: branches/barnowl_unicode/owl/owl.c
===================================================================
--- branches/barnowl_unicode/owl/owl.c	2008-01-11 19:46:52 UTC (rev 832)
+++ branches/barnowl_unicode/owl/owl.c	2008-01-11 20:32:14 UTC (rev 833)
@@ -556,7 +556,7 @@
       else if (j.ch > 0x7f && j.ch < 0xfe) {
 	/* Pull in a full utf-8 character. */
 	int bytes, i;
-	char *utf8buf[7];
+	char utf8buf[7];
 	memset(utf8buf, '\0', 7);
 
 	utf8buf[0] = j.ch;

Modified: branches/barnowl_unicode/owl/owl.h
===================================================================
--- branches/barnowl_unicode/owl/owl.h	2008-01-11 19:46:52 UTC (rev 832)
+++ branches/barnowl_unicode/owl/owl.h	2008-01-11 20:32:14 UTC (rev 833)
@@ -273,7 +273,6 @@
 
 typedef struct _owl_input {
   int ch;
-  char utf8buf[8];
   gunichar uch;
 } owl_input;
 


home help back first fref pref prev next nref lref last post