This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix libstdc++/5708


Paolo Carlini wrote:
> 
> Nathan Myers wrote:
> 
> > I don't agree that we have license to assume "space" may be replaced with
> > __fill in the output format.   The subject has not (to my knowledge) been
> > reported as a Defect to the committee.  This change strikes me as a source
> > of interoperability problems, as sensible as it might seem otherwise.
> 
> Another thing: as Peter Schmid noticed, Nico Josuttis believes too that "Where a
> space character has to appear, the character /fill/ is inserted".

It seems quite clear in the Note in 22.2.6.2.2, p2:

    ...If the number of characters generated for the specified format
    is less than the value returned by str.width() on entry to the
    function, then copies of fill are inserted as necessary to pad
    to the specified width. ...

The Note should probably be normative, but other than that I don't
think there's any doubt about whether it's fill that's used for
padding.

Regards
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]