From 1091415304088925587
X-Google-Thread: f78e5,1470848ffc450545
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII
Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: pjp@dinkumware.com ("P.J. Plauger")
Newsgroups: comp.std.c++
Subject: Re: Impact of the ios_base parameter upon the semantics of
 time_put::put
Date: Sat, 12 Mar 2005 16:16:12 GMT
Lines: 27
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <20050312135257.42B3F1022A@mscan3.ucar.edu>
References: <d0sjat$61n$1@sklad.atcom.net.pl>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN
Content-Transfer-Encoding: quoted-printable
X-Trace: news.demon.co.uk 1110644190 9989 158.152.254.254 (12 Mar 2005 16:16:30 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Sat, 12 Mar 2005 16:16:30 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MIME-Autoconverted: from 8bit to quoted-printable by mulga.cs.mu.OZ.AU id j2CGGOCx027380
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-MSMail-priority: Normal
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j2CGGC2j027348;
	Sun, 13 Mar 2005 03:16:12 +1100 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:4219

""Krzysztof =AFelechowski"" <yecril@bluebottle.com> wrote in message=20
news:d0sjat$61n$1@sklad.atcom.net.pl...

> The date string is localized according to the ios_base parameter under=20
> g++, whereas Microsoft Visual C++ uses the locale the facet was extract=
ed=20
> from. The result is different.  Which approach is correct?

Not clear what you're saying. Every ostream object stores a
locale object in its basic_ios base class. (Whether the
locale object is actually stored in basic_ios base or even
deeper in the ios_base subobject is a gray area.) The facet
time_put should be obtained as needed from this locale
object. VC++ certainly does this, but I don't understand
what difference in behavior you're identifying for g++.

P.J. Plauger
Dinkumware, Ltd.
http://www.dinkumware.com


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



