I wonder if anybody can provide the solution on how to do this.

I have a need to extract the LC_MONETARY structures from the cldr (Unicode.org) dat, they provide POSIX locale source files, but I'm unsure of exactly how I extract the data from the posix source files.

If I run localedef, I can convert the source file into binary data, so a LC_MONETARY file appears, but this is in binary format and there appears to be no way of dumping this information directly from the file, the only way would appear to be to install the said locale and then use a small c program to extract the data into my structures.

Does anybody know of a nice way to do what I want, the locale utility can dump the data in the form I want directly to the console, but it only works with installed locales, not some arbitray locale file I have just generated.

I just want a dump of this data in UTF8 and I've just wasted a day trying to figure out how to do it.

Ideas and solutions highly appreciated!

Adrian