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: _M_fill initialization in basic_ios::init


Actually my mind slipped a bit when I suggested what to do,
the fill character is used to fill out the width of any
formatted output, so it will be used for any of a locale's
output facets. In fact I guess ctype doesn't really have
anything to do with formatted output, except in the current
state of this implementation its widen function is used to
to initialize the fill character (by widening space). So I
guess the problem is in initializing the fill character in
this way, since there is no guarantee that the locale has
the ctype facet. I'm not sure what is appropriate, I've
never read the standard and I really barely know anything
about locales (i was just forced to figure out this much
in trying to understand why i was having a problem). Maybe
someone who has a better understanding of locales can think
about this, or tell me to shut up because i have no clue =)

Anyway I'll work on some code to demonstrate the problem.

Thanks,
Rich



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