[sword-svn] r3768 - trunk/bindings

scribe at crosswire.org scribe at crosswire.org
Sun Jul 26 10:33:53 EDT 2020


Author: scribe
Date: 2020-07-26 10:33:53 -0400 (Sun, 26 Jul 2020)
New Revision: 3768

Modified:
   trunk/bindings/flatapi.cpp
Log:
Conditionally inject FlatStringMgr based on if SWORD does not yet support UTF8


Modified: trunk/bindings/flatapi.cpp
===================================================================
--- trunk/bindings/flatapi.cpp	2020-07-26 14:10:31 UTC (rev 3767)
+++ trunk/bindings/flatapi.cpp	2020-07-26 14:33:53 UTC (rev 3768)
@@ -369,8 +369,8 @@
 		HandleSWMgr::availableLocales = 0;
 
 		HandleInstMgr::remoteSources = 0;
-		// add this stringmgr to allow you to supply a toUpperUTF8 method
-		// StringMgr::setSystemStringMgr(new FlatStringMgr());
+
+		if (!StringMgr::hasUTF8Support()) StringMgr::setSystemStringMgr(new FlatStringMgr());
 	}
 	~InitStatics() {
 



More information about the sword-cvs mailing list