[sword-cvs] sword/src/modules/filters utf8utf16.cpp,1.9,1.10

sword@www.crosswire.org sword@www.crosswire.org
Sun, 18 Jan 2004 00:00:43 -0700


Update of /cvs/core/sword/src/modules/filters
In directory www:/tmp/cvs-serv31609/src/modules/filters

Modified Files:
	utf8utf16.cpp 
Log Message:
experimenting with utf16

Index: utf8utf16.cpp
===================================================================
RCS file: /cvs/core/sword/src/modules/filters/utf8utf16.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- utf8utf16.cpp	27 Jun 2003 06:13:16 -0000	1.9
+++ utf8utf16.cpp	18 Jan 2004 07:00:41 -0000	1.10
@@ -72,6 +72,8 @@
 			*((unsigned short *)(text.getRawData()+(text.size()-2))) = (unsigned short)uchar;
 		}
 	}
+	text.setSize(text.size()+2);
+	*((unsigned short *)(text.getRawData()+(text.size()-2))) = (unsigned short)0;
 	return 0;
 }