Yeah, perhaps this..

I just pulled down source code for uclibc (a simple/complete C-library), and the included locale.c source file may have much of what you want. Look at function update_hr_locale(), perhaps.

I hope this helps, despite my lack of knowledge about locales in general.

smile