monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Ticker change?


From: Richard Levitte - VMS Whacker
Subject: Re: [Monotone-devel] Ticker change?
Date: Sun, 04 Jun 2006 11:58:40 +0200 (CEST)

OK, I've looked around, and I'm now convinced that the revision I
mentioned is the root cause of the failure of ticker formatting.

Basically, the new formatter implementation in sanity.{cc,hh} seems to
work in a two-step fashion.  First, the data being added to the format
structure used (plain_format or i18n_format) is fed directly to the
internal string stream (pimpl->oss, found by using get_stream()) with
no formatting whatsoever.  THEN, the string built up from the string
stream is fed to the underlying formatting class (pimpl->fmt) in
string form.

The problem with this is that the formatting which is supposed to
happen in the second step has already happened in the first, basically
making the formatting useless for anything other than indicating in
what parts of the format string each piece of data is supposed to end
up.

Graydon, since you did this change, could you tell me how you intended
the design to be?  The lack of comments doesn't really make things
entirely clear.  That or make appropriate changes yourself :-).  (or,
well, if someone could pay me a class in mind reading, I wouldn't mind
that either, there are tons of uses for that :-))

In message <address@hidden> on Sun, 04 Jun 2006 09:45:04 +0200 (CEST), Richard 
Levitte - VMS Whacker <address@hidden> said:

richard> Hi,
richard> 
richard> I just updated my mtn to all the changes in the last week (since
richard> Monday, to be precise), and noticed that the ticker output has
richard> changed:
richard> 
richard>   : ; mtn pull
richard>   mtn: ansluter till off.net
richard>   mtn: letar efter saker att synkronisera:
richard>   mtn: certifikat | nycklar | revisioner
richard>   mtn:      18971 |      30 |       6280
richard>   mtn: byte in |    byte ut | cert in | rev in
richard>   mtn:     420 |  1.7959 Ki |       0 |      0
richard>   mtn:    byte in |    byte ut | cert in | rev in
richard>   mtn: 310.809 Ki | 45.0117 Ki |   24/24 |    6/6
richard>   mtn: lyckat utbyte med off.net
richard> 
richard> There are two things that have changed:
richard> 
richard>  - floats aren't limited to one decimal any more.
richard>  - it seems that locale isn't considered any more.  According to
richard>    Swedish local, a comma should be used as decimal delimiter, not a
richard>    period.
richard> 
richard> Looking at the code in ui.cc, I don't understand what's happening,
richard> considering the format strings that should control the way the numbers
richard> are printed are all N_("%.1f").  Could it be that there's been a
richard> change in the N_ macro or whatever it uses that affects this?  Could
richard> it be the format change in sanity.{cc,hh} in revision
richard> a3dcfaa2a85bb0a6f3a69eb0686f7a76203658a0?
richard> 
richard> Cheers,
richard> Richard
richard> 
richard> -- 
richard> Richard Levitte                         address@hidden
richard>                                         http://richard.levitte.org/
richard> 
richard> "When I became a man I put away childish things, including
richard>  the fear of childishness and the desire to be very grown up."
richard>                                                -- C.S. Lewis
richard> 
richard> 
richard> _______________________________________________
richard> Monotone-devel mailing list
richard> address@hidden
richard> http://lists.nongnu.org/mailman/listinfo/monotone-devel




reply via email to

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