This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: _M_fill initialization in basic_ios::init
- From: Richard Burkert <rrburkert at pobox dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Sun, 02 Dec 2001 15:58:12 +0000
- Subject: Re: _M_fill initialization in basic_ios::init
- References: <3C099EFF.1020803@pobox.com> <3C0A0EC4.4F11F3B8@unitus.it>
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