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: Some details on the named locale problem


Paolo Carlini <pcarlini@unitus.it> writes:

> > For the case of a null thousands_sep, you can return the base
> > class result (',').
> 
> Ah, ok. In a follow up patch to that I have posted moments ago (which fixes
> seg-faults!) I will also adjust this, substituting NUL with ',' for the
> thousands separator, after having inferred from NUL that grouping is "", as
> indicated by Ulrich.
> Ok?

No.  If the locale contains an empty string it means an empty string.
The grouping string is irrelevant since adding an empty string
anywhere wouldn't change the output.  If you substitute ',' for NUL
this what be completely wrong.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


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