Boost logo

Boost :

Subject: Re: [boost] [boost[program options] locale support
From: Christoph Heindl (christoph.heindl_at_[hidden])
Date: 2010-06-21 08:58:15


On Mon, Jun 21, 2010 at 1:34 PM, Vladimir Prus
<vladimir_at_[hidden]> wrote:
>
> Ah, that's what you mean. The problem is that command-line parsing
> does not have any associated locale other than the global one,

I don't quite understand. reading from std::cin does have an locale, doesn't it?
I.e the following is valid:

  std::cin.imbue(loc);

> it would be somewhat awkward to remember a locale associated with
> source config file.

remember? that's what stream.imbue(loc) does, or not?

> Is it common to use different locales for different files?

No, it shoudn't, but happens :)

Best regards,
Christoph


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk