22 Jan
                
                    2014
                
            
            
                22 Jan
                
                '14
                
            
            
            
        
    
                11:32 a.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.