[sword-devel] BibleTime or Sword crashes on startup on Mac OS X

Joachim Ansorg sword-devel@crosswire.org
Sun, 16 Feb 2003 16:19:40 +0100


--Boundary-00=_Mw6T+oLwLilQYPT
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi!
Your output of localetest looked wrong. Could you please copy the attached 
file to sword-source-dir/tests/ and call make then? 

Please send me the new output of localetest afetr you called make. I hope this 
shows me bit more what's wrong.

On my side it looks like this:
---
Jakobus 1:19 (should be Jakobus 1:19)
Johannes 1:1 (should be Johannes 1:1)
Calling setDefaultLocaleName("de") now
Create key2 now 
Setting en locale now
Calling ParseVerseList now 
Lukas 3:23
Finished.
---

Thanks,
Joachim
-- 
Joachim Ansorg
www.bibletime.info
joachim.ansorgs.de
--Boundary-00=_Mw6T+oLwLilQYPT
Content-Type: text/x-c++src;
  charset="iso-8859-1";
  name="localetest.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="localetest.cpp"

#include <localemgr.h>
#include <versekey.h>
#include <iostream>
#ifndef NO_SWORD_NAMESPACE
using namespace sword;
#endif
using std::cout;
using std::endl;

int main(int argc, char **argv) {
	LocaleMgr localeMgr;

	VerseKey key1;
	key1 = "James 1:19";

	key1.setLocale("de");
	std::cout << key1 << " (should be Jakobus 1:19)"<< std::endl;
	
	key1 = "Johannes 1:1";
	std::cout << key1 << " (should be Johannes 1:1)" << std::endl;

	std::cout << "Calling setDefaultLocaleName(\"de\") now" << std::endl;
	LocaleMgr::systemLocaleMgr.setDefaultLocaleName("de");
	
	cout << "Create key2 now " << endl;
	VerseKey key2;
	
	cout << "Setting en locale now" << endl;
	key2.setLocale("en");

	cout << "Calling ParseVerseList now " <<endl;
	
	ListKey list = key2.ParseVerseList("Luke 3:23-28",key2, true);
	std::cout << list << std::endl;

	cout << "Finished."<< endl;
}

--Boundary-00=_Mw6T+oLwLilQYPT--