Changes To Windows XP
Not logged in
@@ -206,5 +206,68 @@
 latest version of fossil for windows (available from the
 download page.)  The commands above all work correctly
 for me.
 <hr>
 
+<nowiki><pre>
+
+So far no joy with opening repository/adding files to it.
+I am checking it on Czech mutation of win XP, SP2 (that's why I have
+path with some weird ascented characters in APPDATA variable)
+After reading "Note to windows users" at [http://sqlite.org/capi3ref.html#sqlite3_open],
+I realized there shall be UTF-8 encoded path presented. So as a temp workaround
+I modified  line 561 in db.c as follows:
+
+zHome = "C:\\Documents and Settings\\user\\Data aplikac\xC3\xAD";/*  zHome = getenv("LOCALAPPDATA");*/
+
+With this change it creates "user" and "local checkout" database files at "c:\soft\bin"
+or "c:\Documents and Settings\user\Data aplikac&#237;" directories (with journals at times)
+
+
+Debugging fossil.exe open .\myrep01 (with myrep01 already created) with breakpoint set
+on vfile_scan function does not stop there (I can catch sqlite3ErrorMsg, with backtrace log below)
+
+Would you recommend some places to look at/things to check? Many thanks.
+
+--checks
+C:\soft\bin>fossil.exe help
+Usage: fossil.exe help COMMAND.
+Available COMMANDs:
+(list of command removed)
+This is fossil version [849b94c631] 2008-07-17 01:49:16
+
+C:\soft\bin>fossil.exe new .\myrep01
+project-id: f9037fb9096c9532d56b243e43c5c7d886e0940f
+server-id:  620679182a479091377a5d51eecac3edb0c18227
+admin-user: user (no password set yet!)
+baseline:   ef6cbffd434aaaa8aa58de44d545fe5eff9a80fd
+
+C:\soft\bin>fossil.exe open .\myrep01
+fossil.exe: table global_config already exists
+
+C:\soft\bin>fossil.exe info .\myrep01
+fossil.exe: not within an open checkout
+
+--removed all database files
+C:\soft\bin>fossil.exe open .\myrep01
+fossil.exe: repository does not exists or is in an unreadable directory: C:/soft/bin/myrep01
+
+--backtrace log of running C:\soft\bin>fossil.exe open .\myrep01 :
+(gdb) backtrace
+#0  sqlite3ErrorMsg (pParse=0x22f3e0, zFormat=0x4cb985 "table %T already exists") at ./src/sqlite3.c:17355
+#1  0x00462240 in sqlite3StartTable (pParse=0x22f3e0, pName1=0x7a431c, pName2=0x7a4330, isTemp=0, isView=0, isVirtual=0, noErr=0) at ./src/sqlite3.c:55547
+#2  0x00484b56 in yy_reduce (yypParser=0x7a4290, yyruleno=21) at ./src/sqlite3.c:12016
+#3  0x004875a7 in sqlite3Parser (yyp=0x7a4290, yymajor=19, yyminor={z = 0x4ba85a "(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n", dyn = 0, n = 1}, pParse=0x22f3e0) at ./src/sqlite3.c:13064
+#4  0x00488124 in sqlite3RunParser (pParse=0x22f3e0, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n", pzErrMsg=0x22f3dc) at ./src/sqlite3.c:13710
+#5  0x00472394 in sqlite3Prepare (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n", nBytes=-1, saveSqlFlag=0, ppStmt=0x22f634, pzTail=0x22f638) at ./src/sqlite3.c:65288
+#6  0x004727ac in sqlite3LockAndPrepare (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n", nBytes=-1, saveSqlFlag=0, ppStmt=0x22f634, pzTail=0x22f638) at ./src/sqlite3.c:65369
+#7  0x004728a7 in sqlite3_prepare (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n", nBytes=-1, ppStmt=0x22f634, pzTail=0x22f638) at ./src/sqlite3.c:65425
+#8  0x0046e1e1 in sqlite3_exec (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n", xCallback=0, pArg=0x0, pzErrMsg=0x0) at ./src/sqlite3.c:62344
+#9  0x0040b64a in db_init_database (zFileName=0x7a0700 "C:/Documents and Settings/user/Data aplikac&#237;/_fossil", zSchema=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value TEXT\n);\n") at db_.c:520
+#10 0x0040b80e in db_open_config () at db_.c:582
+#11 0x0040b8bf in isValidLocalDb (zDbName=0x22f700 "C:/soft/bin/_FOSSIL_") at db_.c:599
+#12 0x0040b9d5 in db_open_local () at db_.c:633
+#13 0x0040c69a in cmd_open () at db_.c:1047
+#14 0x00415b57 in main (argc=3, argv=0x3d2528) at main_.c:233
+
+
+</pre> </nowiki>