Yes, I tried that. I'm still trying to get the hang of gdb, but anyway, I'm still not proficient enough to understand what I'm looking at.
I was trying to ween myself off MSVC, but I had to go back, just to see what was going on, and even there, the error message is inscrutable.
Code:
First-chance exception at 0x004358b1 in de_tolower.exe: 0xC0000005: Access violation reading location 0xfeeefef6.
Unhandled exception at 0x004358b1 in de_tolower.exe: 0xC0000005: Access violation reading location 0xfeeefef6.
The only thing I did to the code was change the ctype definition so that it would conform to Microsoft locale settings:
Code:
const ctype<char>& ct_de = use_facet<ctype<char> >(locale("German_Germany"));
I tried to step into the code as much as possible in debug mode but it would not go beyond "xlocale":
Code:
_Elem tolower(_Elem _Ch) const
{ // convert element to lower case
return (do_tolower(_Ch));
}
I'm stumped.
To be honest, it would be much easier for me just to set up my own conversion table for the upper ASCII, but since c++ had localized libraries (which seem to be platform dependent to a certain degree), I thought it might be a good idea to learn how to use them. If no solutions turn up, I'll just have to manually encode the case conversion.