[sword-svn] r2115 - trunk/src/mgr

scribe at www.crosswire.org scribe at www.crosswire.org
Tue Oct 16 11:29:01 MST 2007


Author: scribe
Date: 2007-10-16 11:29:00 -0700 (Tue, 16 Oct 2007)
New Revision: 2115

Modified:
   trunk/src/mgr/stringmgr.cpp
Log:
reverting back to previous logic for determining utf-8-ness of a string.
there seems to be some kind of scenario where the new logic can hang.
reviewing the code briefly didn't look like there were any obvious
problems.  bypassing for now, but leaving everything in place for
future resolution.


Modified: trunk/src/mgr/stringmgr.cpp
===================================================================
--- trunk/src/mgr/stringmgr.cpp	2007-10-16 00:03:19 UTC (rev 2114)
+++ trunk/src/mgr/stringmgr.cpp	2007-10-16 18:29:00 UTC (rev 2115)
@@ -72,6 +72,7 @@
  */
 int isValidUTF8(unsigned char *txt) {
 	unsigned int  countUTF8 = 0;
+#if 0
 	unsigned char parts     = 0;
 
 
@@ -109,6 +110,7 @@
 	}
 
 	// At this point it is either UTF-8 or ascii
+#endif
 	return countUTF8 ? 1 : -1;
 }
 




More information about the sword-cvs mailing list