DR 13631 patch

François Dumont frs.dumont@gmail.com
Sun Feb 19 19:36:00 GMT 2012


Hi

     I would like to fix DR 13631 regarding the impossibility to open 2 
catalogs at the same time with current gnu messages facet 
implementation. I have adapted the test from Sam Varshavchik posted in 
bugzilla that use libc and gnupg catalogs to show the problem. I would 
like to have your opinion on 2 points of this patch:
- there are already tests using the libstdc++ catalog that are only 
using dg-require-namedlocale to check if it is supported. However I 
wonder if there might be platforms with locale support but no messages 
implementation or perhaps simply configured to use the generic 
implementation. Shouldn't we have something like a 
dg-require-message-facet to check that we have a real message facet 
implementation ?
- Should I introduce a dejagnu macro to check availability of the libc 
and gnupg catalogs. Writing this I realize that I could use libstdc++ in 
place of one of those catalogs but I would still need to check for the other
- I use a map to associate int catalogs to gettext domains. Doing so I 
need to export a _Rb_tree instantiation which is quite huge, shouldn't I 
replace it with a simpler data structure like a sorted array ?

François


-------------- next part --------------
A non-text attachment was scrubbed...
Name: message.patch
Type: text/x-patch
Size: 9324 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120219/ce4fb380/attachment.bin>


More information about the Libstdc++ mailing list