stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: //stdcxx/trunk/tests/localization/22_synopsis.cpp
Date Tue, 22 Apr 2008 16:18:15 GMT
Eric Lemings wrote:
>  
> 
>> -----Original Message-----
>> From: Martin Sebor [mailto:sebor@roguewave.com] 
>> Sent: Tuesday, April 22, 2008 9:25 AM
>> To: dev@stdcxx.apache.org
>> Subject: Re: //stdcxx/trunk/tests/localization/22_synopsis.cpp
>>
>> Eric Lemings wrote:
>>>  
>>>
>>>> -----Original Message-----
>>>> From: Martin Sebor [mailto:sebor@roguewave.com] 
>>>> Sent: Monday, April 21, 2008 10:50 AM
>>>> To: dev@stdcxx.apache.org
>>>> Subject: Re: //stdcxx/trunk/tests/localization/22_synopsis.cpp
>>>>
>>>> Eric Lemings wrote:
>>>>>  
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Eric Lemings 
>>>>>> Sent: Monday, April 21, 2008 9:43 AM
>>>>>> To: Martin Sebor; Travis Vitek
>>>>>> Subject: RE: //stdcxx/trunk/tests/localization/22_synopsis.cpp
>>>>>>
>>>>>>  
>>>>>>
>>> ...
>>>>>> I'm testing with gcc on Linux and this is not defined which
>>>>>> in turn leads to compile errors.
>>>>> And where is get_locale_category()?  I can't find it anywhere.
>>>> See the %{Lc} directive to rw_printf(). Here are some use cases:
>>>> http://fisheye6.cenqua.com/browse/stdcxx/trunk/tests/self/0.pr
>>>> intf.cpp?r=trunk#l1061
>>>>
>>>> Martin
>>> What is/was the 2nd boolean parameter to get_locale_category() and
>>> does it have any bearing on the %{Lc} directive?
>> I don't remember off the top of my head. Why don't you look
>> at the implementation of the function in the old driver:
>>    http://tinyurl.com/3ozfpb
>>
> 
> Ah, it does have bearing on the output.  Is there a formatting directive
> in the test driver that differentiates "std::locale::monetary" from
> "LC_MONETARY" for example?

There's no need for that. The LC_XXX macros are guaranteed
to be distinct from the C++ locale category constants. See
the test for some use cases:
http://fisheye6.cenqua.com/browse/stdcxx/trunk/tests/self/0.printf.cpp?r=trunk#l1061

Martin

Mime
View raw message