Wed 20 Jan 2010 04:02:55 AM UTC, comment #6:
forget about strace log-good, i've already comment where the differences are
$ echo "SELECT COUNT(*) FROM sqlite_master;" | sqlite3 test.mtn
-
the above is wrong. but this is not a sqlite3 issue because i found that it was the mtn that didn't create the right file
$ cd /tmp; strace -e open mtn db init -d test.mtn 2>&1
...
open("/tmp/test.mt ", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
open("/tmp/test.mt -journal", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 4
...
$ cd /tmp/a; strace -e open mtn db init -d test.mtn 2>&1
open("/tmp/a/test. ", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
open("/tmp/a/test. -journal", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 4
$ cd /tmp/a/a; strace -e open mtn db init -d test.mtn 2>&1
open("/tmp/a/a/\10\255C\10\200\362D\10\274\362D\10\6", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
open("/tmp/a/a/\10\255C\10\200\362D\10\274\362D\10\6-journal", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 4
$ LANG=C strace -e open mtn db init -d test.mtn 2>&1
open("/tmp/a/a/test.mtn", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
open("/tmp/a/a/test.mtn-journal", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 4
> Hrm... _MTN/options in your workspace where you try to pull to still points to /home/moo/.monotone/pidgin.mtn, right?
sure, i always compare with and without LANG=C
> Does the error persists if you pull outside of the workspace, while explicitely giving -d /home/moo/.monotone/pidgin.mtn as option to mtn pull?
$ cd /tmp
$ strace -e open mtn -d /home/moo/.monotone/pidgin.mtn pull
open("/tmp/\1", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = 3
mtn: misuse: cannot use the empty sqlite database /home/moo/.monotone/pidgin.mtn
mtn: misuse: (monotone databases must be created with 'mtn db init')
having you ask the question and i reply the other day may take ages to finish the info collecting. i'm sure i have provide enough information on how to reproduce it and what happened except that i'm not sure it can be reproduced in your box. can u pls install zh_CN.GBK and try to reproduce it?
|