Re: [Monotone-devel] continued problems

2005-09-01 Thread Matthew Gregan
At 2005-08-27T22:13:12-0700, Howard Spindel wrote:
 I had been running monotone under a WinXP cmd.exe.  After reading the 
 below, I downloaded and installed a Cygwin bash shell.  The results 
 running under the bash shell are identical to those running under the 
 cmd.exe - addressing errors when running diff.

 When I try the db load command, I get:

 monotone: error: sqlite error [1]: near 
 'H4sIAOxdCXgcxZXukSxbtuX7AGxsyyCDAWvGJ2DL2NZh2SNLtpHkI7Y4WjMtqa2e
 monotone: error: 
 6WG6RxpxJCbhvkM4kkC4A0kgIYGwSTgScyUBcpFgCElISAwE2EAgHAmE4H1V1T3Tx2tpquTd
 monotone: error: 
 zbc77c+j6emq/6969erVq1fV3S/s37//7Tmfv3nKdyY/HpLaBhJy0lRilVH4TCcVs7Jd1zWj

 followed by hundreds more lines that look similar except the garbagy 
 characters change.  It looks to me like lines that are supposed to be 
 data are getting interpreted as commands.

Thanks for reporting this.  It turned out to be a Win32 (really, MinGW)
specific problem where std::cin was returning EOF early after the
standard I/O streams had been unsynchronized with a call to
sync_with_stdio(false) when feed input that contained DOS newlines.

The correct solution for this needs a fix in MinGW.  For now, I've
committed a change to mainline (rev. fc87df) to work around this
problem.

Cheers,
-mjg
-- 
Matthew Gregan |/
  /|[EMAIL PROTECTED]


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] continued problems

2005-09-01 Thread Howard Spindel

At 03:27 PM 9/1/2005, Matthew Gregan wrote:

At 2005-08-27T22:13:12-0700, Howard Spindel wrote:

 When I try the db load command, I get:

 monotone: error: sqlite error [1]: near
 'H4sIAOxdCXgcxZXukSxbtuX7AGxsyyCDAWvGJ2DL2NZh2SNLtpHkI7Y4WjMtqa2e
 monotone: error:
 6WG6RxpxJCbhvkM4kkC4A0kgIYGwSTgScyUBcpFgCElISAwE2EAgHAmE4H1V1T3Tx2tpquTd
 monotone: error:
 zbc77c+j6emq/6969erVq1fV3S/s37//7Tmfv3nKdyY/HpLaBhJy0lRilVH4TCcVs7Jd1zWj

 followed by hundreds more lines that look similar except the garbagy
 characters change.  It looks to me like lines that are supposed to be
 data are getting interpreted as commands.

Thanks for reporting this.  It turned out to be a Win32 (really, MinGW)
specific problem where std::cin was returning EOF early after the
standard I/O streams had been unsynchronized with a call to
sync_with_stdio(false) when feed input that contained DOS newlines.

The correct solution for this needs a fix in MinGW.  For now, I've
committed a change to mainline (rev. fc87df) to work around this
problem.


Thank you for looking into that, Matthew.  One question though...

The problem also occurs when running db load from a regular WinXP 
command prompt - no MinGW involved.  So, is your fix effective when 
MinGW is not running?


I guess another way to ask this is: When you say it's a MinGW 
problem, did you mean a problem with the MinGW development 
environment or runtime environment?   If the latter, perhaps the 
problem is not fully understood?


Regards,
Howard




___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] continued problems

2005-09-01 Thread Matthew Gregan
At 2005-09-01T16:39:14-0700, Howard Spindel wrote:
 I guess another way to ask this is: When you say it's a MinGW problem,
 did you mean a problem with the MinGW development environment or
 runtime environment?   If the latter, perhaps the problem is not fully
 understood?

It's a problem with the MinGW C++ support runtime, which is used by the
official Win32 binaries.

Cheers,
-mjg
-- 
Matthew Gregan |/
  /|[EMAIL PROTECTED]


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] continued problems

2005-08-28 Thread Howard Spindel

Further followup:  Results are the same under a MINGW shell as well.

Howard

At 10:13 PM 8/27/2005, Howard Spindel wrote:
I had been running monotone under a WinXP cmd.exe.  After reading 
the below, I downloaded and installed a Cygwin bash shell.  The 
results running under the bash shell are identical to those running 
under the cmd.exe - addressing errors when running diff.


When I try the db load command, I get:

monotone: error: sqlite error [1]: near 
'H4sIAOxdCXgcxZXukSxbtuX7AGxsyyCDAWvGJ2DL2NZh2SNLtpHkI7Y4WjMtqa2e
monotone: error: 
6WG6RxpxJCbhvkM4kkC4A0kgIYGwSTgScyUBcpFgCElISAwE2EAgHAmE4H1V1T3Tx2tpquTd
monotone: error: 
zbc77c+j6emq/6969erVq1fV3S/s37//7Tmfv3nKdyY/HpLaBhJy0lRilVH4TCcVs7Jd1zWj


followed by hundreds more lines that look similar except the garbagy 
characters change.  It looks to me like lines that are supposed to 
be data are getting interpreted as commands.


The db load command fails on the Win2K machine as well.

Howard

At 08:44 PM 8/27/2005, Matthew Gregan wrote:

At 2005-08-27T18:49:43-0700, Howard Spindel wrote:
 I've been corresponding with Matthew Gregan about some continued
 problems I've been having with monotone, but enough new stuff has
 come to light that I thought a post to the group as a whole might
 stir some useful thoughts.

I just sent you another response about this privately--if you'd like to
resend it to the list, feel free.

 I also tried monotone db dump followed by a monotone db
 load.  monotone db load won't work for me - it starts spitting out
 lots of errors.  My command line is:

 monotone db load --db=newDatabase.db  dumpfile

 From the looks of the errors, monotone is seeing data lines in the
 dumpfile as SQL commands, as if redirecting input to monotone isn't
 working right.

Can you please post an example of an error message you're seeing?  And
can you reproduce this problem on both your Win2k and XP machines?  I
can't reproduce it here.

Also, what type of shell are you running monotone under; cmd.exe, or a
Cygwin or MinGW/MSYS shell?

Cheers,
-mjg
--
Matthew Gregan |/
  /|[EMAIL PROTECTED]


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel






___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel








___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] continued problems

2005-08-27 Thread Matthew Gregan
At 2005-08-27T18:49:43-0700, Howard Spindel wrote:
 I've been corresponding with Matthew Gregan about some continued 
 problems I've been having with monotone, but enough new stuff has 
 come to light that I thought a post to the group as a whole might 
 stir some useful thoughts.

I just sent you another response about this privately--if you'd like to
resend it to the list, feel free.

 I also tried monotone db dump followed by a monotone db 
 load.  monotone db load won't work for me - it starts spitting out 
 lots of errors.  My command line is:

 monotone db load --db=newDatabase.db  dumpfile

 From the looks of the errors, monotone is seeing data lines in the 
 dumpfile as SQL commands, as if redirecting input to monotone isn't 
 working right.

Can you please post an example of an error message you're seeing?  And
can you reproduce this problem on both your Win2k and XP machines?  I
can't reproduce it here.

Also, what type of shell are you running monotone under; cmd.exe, or a
Cygwin or MinGW/MSYS shell?

Cheers,
-mjg
-- 
Matthew Gregan |/
  /|[EMAIL PROTECTED]


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel


Re: [Monotone-devel] continued problems

2005-08-27 Thread Howard Spindel
I had been running monotone under a WinXP cmd.exe.  After reading the 
below, I downloaded and installed a Cygwin bash shell.  The results 
running under the bash shell are identical to those running under the 
cmd.exe - addressing errors when running diff.


When I try the db load command, I get:

monotone: error: sqlite error [1]: near 
'H4sIAOxdCXgcxZXukSxbtuX7AGxsyyCDAWvGJ2DL2NZh2SNLtpHkI7Y4WjMtqa2e
monotone: error: 
6WG6RxpxJCbhvkM4kkC4A0kgIYGwSTgScyUBcpFgCElISAwE2EAgHAmE4H1V1T3Tx2tpquTd
monotone: error: 
zbc77c+j6emq/6969erVq1fV3S/s37//7Tmfv3nKdyY/HpLaBhJy0lRilVH4TCcVs7Jd1zWj


followed by hundreds more lines that look similar except the garbagy 
characters change.  It looks to me like lines that are supposed to be 
data are getting interpreted as commands.


The db load command fails on the Win2K machine as well.

Howard

At 08:44 PM 8/27/2005, Matthew Gregan wrote:

At 2005-08-27T18:49:43-0700, Howard Spindel wrote:
 I've been corresponding with Matthew Gregan about some continued
 problems I've been having with monotone, but enough new stuff has
 come to light that I thought a post to the group as a whole might
 stir some useful thoughts.

I just sent you another response about this privately--if you'd like to
resend it to the list, feel free.

 I also tried monotone db dump followed by a monotone db
 load.  monotone db load won't work for me - it starts spitting out
 lots of errors.  My command line is:

 monotone db load --db=newDatabase.db  dumpfile

 From the looks of the errors, monotone is seeing data lines in the
 dumpfile as SQL commands, as if redirecting input to monotone isn't
 working right.

Can you please post an example of an error message you're seeing?  And
can you reproduce this problem on both your Win2k and XP machines?  I
can't reproduce it here.

Also, what type of shell are you running monotone under; cmd.exe, or a
Cygwin or MinGW/MSYS shell?

Cheers,
-mjg
--
Matthew Gregan |/
  /|[EMAIL PROTECTED]


___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel






___
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel