monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] automate stdio: wrong output size information on window


From: stefan.buehler
Subject: [Monotone-devel] automate stdio: wrong output size information on windows
Date: Thu, 27 Apr 2006 08:13:37 +0200

it seems to me that on windows, the size of the output in the response of
'mtn automate stdio' is evaluated
_before_ line endings are expanded to CRLF:

[D:\]echo l5:certs40:0480d32b96fe5ea5ac7325e8a345a3e800f5a091e >
automatestdiocerts.txt

[D:\]mtn -d d:\monotone.db automate stdio < automatestdiocerts.txt | tee
automateresponse.txt
0:0:l:727:      key "address@hidden"
signature "ok"
     name "author"
    value "address@hidden"
    trust "trusted"

      key "address@hidden"
signature "ok"
     name "branch"
    value "net.venge.monotone"
    trust "trusted"

      key "address@hidden"
signature "ok"
     name "changelog"
    value "2006-04-25  Derek Scherger  <address@hidden>

        * restrictions.{cc,hh} (find_missing, find_unknown_and_ignored):
move to...
        * work.{cc,hh}: ...here since these are not really restriction
things
        * cmd_ws_commit.cc: sort includes and add work.hh to account for
moves
"
    trust "trusted"

      key "address@hidden"
signature "ok"
     name "date"
    value "2006-04-26T02:53:43"
    trust "trusted"
    
[D:\]cat automateresponse.txt | wc -m
765

the size of the output header (0:0:l:727:) is 10, so the size of the output
value is 765 - 10 = 755; the difference between the size mtn automate stdio
reports
and the effective size is 755 - 727 = 28, which is exactly the number of
lines of mtn automate stdio's output:

[D:\]cat automateresponse.txt | wc -l
28

[D:\]mtn --full-version
monotone 0.26 (base revision: unknown)
Running on          : Windows NT/2000/XP (5.1, build 2600) on ia32 (level 6,
rev 3334)
C++ compiler        : GNU C++ version 3.4.5 (mingw special)
C++ standard library: GNU libstdc++ version 20051201
Boost version       : 1_33_1
Changes since base revision:
unknown


(i installed monotone using the monotone-0.26-setup.exe installer provided
on venge.net/monotone, so no idea why the 'base revision' information is
missing)

stefan b






reply via email to

[Prev in Thread] Current Thread [Next in Thread]