------- Comment #6 from pcarlini at suse dot de 2008-01-11 03:17 ------- (In reply to comment #5) > It's irrelevant to the implementation but it could be relevant to user-defined > formatting (or parsing) code that bypasses num_put (or num_get) but uses > numpunct to get the expected formats.
I'm not questioning that. > IMO, the improvement in any Linux implementation (libstdc++ or stdcxx) lies in > figuring out how to preserve the "\3\3" grouping and NUL thousands_sep for > bg_BG (and expose each via numpunct::grouping() and > numpunct::thousdands_sep()) > without causing num_put to insert NUL every three digits. Frankly, I think it's impossible. Because the underlying glibc info says the C++ library to not group. The locale does not group. In that case, I don't think grouping() can be anything but the empty string. And I think 22.2.3.1.2/3 (and the rest of 22.2) almost enforces that explicitly. If you disagree with that, I think we should file a DR. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34733