22 Jan
                
                    2014
                
            
            
                22 Jan
                
                '14
                
            
            
            
        
    
                5:08 p.m.
            
        This seems to be a bug in VC12's std::collate::do_transform. If _Wcsxfrm returns INT_MAX to indicate that the call to __crtLCMapStringW failed, the string gets resized to INT_MAX elements. I will report this on Microsoft Connect. The hang doesn't occur if you don't call transform for empty strings.
OK thanks, I'll see if I can figure out why it's getting an empty string, and try to patch/workaround that. Many thanks for investigating that, much appreciated, John.