Hi, I don't post the code because it's too much complex, It's works on different level functions.
I use correct setting for LC_ALL and test return code for setlocale(). I use codes constructed from user browser.
The test that the codes is right is that now I use again version 1.8.1 without problems. The problems aren't on setlocale(), but if you after call localeconv(), you can see that the values returned aren't correct. The strange thing is that if I try multiple times, sometimes localeconv() is right.