Index: branches/mbutscher/next/lib/pwiki/wikidata/compact_sqlite/WikiData.py
===================================================================
--- branches/mbutscher/next/lib/pwiki/wikidata/compact_sqlite/WikiData.py (revision 177)
+++ branches/mbutscher/next/lib/pwiki/wikidata/compact_sqlite/WikiData.py (revision 178)
@@ -37,6 +37,6 @@
 
 
-from pwiki.StringOps import getBinCompactForDiff, applyBinCompact, pathEnc, pathDec,\
-        binCompactToCompact, fileContentToUnicode, utf8Enc, utf8Dec, \
+from pwiki.StringOps import getBinCompactForDiff, applyBinCompact, longPathEnc, \
+        longPathDec, binCompactToCompact, fileContentToUnicode, utf8Enc, utf8Dec, \
         uniWithNone, loadEntireTxtFile, Conjunction, lineendToInternal
 
@@ -55,5 +55,5 @@
 
         try:
-            if (not exists(pathEnc(dbfile))):
+            if (not exists(longPathEnc(dbfile))):
                 DbStructure.createWikiDB(None, dataDir)  # , True
         except (IOError, OSError, sqlite.Error), e:
@@ -61,5 +61,5 @@
             raise DbWriteAccessError(e)
 
-        dbfile = pathDec(dbfile)
+        dbfile = longPathDec(dbfile)
         try:
             self.connWrap = DbStructure.ConnectWrapSyncCommit(
@@ -256,7 +256,7 @@
                 # Word does not exist -> record creation date
                 self.connWrap.execSql("insert or replace into wikiwordcontent"
-                    "(word, content, modified, created, wordnormcase) "
-                    "values (?,?,?,?,?)",
-                    (word, sqlite.Binary(content), moddate, creadate, word.lower()))
+                    "(word, content, modified, created) "
+                    "values (?,?,?,?)",
+                    (word, sqlite.Binary(content), moddate, creadate))
         except (IOError, OSError, sqlite.Error), e:
             traceback.print_exc()
@@ -271,6 +271,6 @@
         """
         try:
-            self.connWrap.execSql("update wikiwordcontent set word = ?, wordnormcase = ? "
-                    "where word = ?", (newWord, newWord.lower(), oldWord))
+            self.connWrap.execSql("update wikiwordcontent set word = ? "
+                    "where word = ?", (newWord, oldWord))
     
             self.cachedContentNames = None
@@ -1859,7 +1859,7 @@
         self.connWrap.syncCommit()
 
-        fnames = glob.glob(pathEnc(join(self.dataDir, '*.wiki')))
+        fnames = glob.glob(longPathEnc(join(self.dataDir, '*.wiki')))
         for fn in fnames:
-            word = pathDec(basename(fn)).replace('.wiki', '')
+            word = longPathDec(basename(fn)).replace('.wiki', '')
 
             content = fileContentToUnicode(loadEntireTxtFile(fn))
