[sword-svn] r3101 - trunk/src/modules/filters

chrislit at crosswire.org chrislit at crosswire.org
Tue Mar 11 21:40:05 MST 2014


Author: chrislit
Date: 2014-03-11 21:40:04 -0700 (Tue, 11 Mar 2014)
New Revision: 3101

Modified:
   trunk/src/modules/filters/scsuutf8.cpp
Log:
switched to correct extraction converter (for the case of longer UTF-8 strings)


Modified: trunk/src/modules/filters/scsuutf8.cpp
===================================================================
--- trunk/src/modules/filters/scsuutf8.cpp	2014-03-12 04:34:32 UTC (rev 3100)
+++ trunk/src/modules/filters/scsuutf8.cpp	2014-03-12 04:40:04 UTC (rev 3101)
@@ -141,7 +141,7 @@
 	int32_t len = utf16Text.extract(text.getRawData(), text.size(), utf8Conv, err);
 	if (len > (int32_t)text.size()+1) {
 		text.setSize(len+1);
-		utf16Text.extract(text.getRawData(), text.size(), scsuConv, err);
+		utf16Text.extract(text.getRawData(), text.size(), utf8Conv, err);
 	}
 #else
 	// If ICU is unavailable, decode using Czyborra's decoder




More information about the sword-cvs mailing list