I've pushed a modified version of your patches. I've also added some patches to fix errors found in existing code. Here's a short description of changes: - add missing msvcrt exports - add support for multi-byte characters in _mbctolower_l and _mbctoupper_l - fix error handling in _mbslwr_l and _mbsupr_l (this was done in your patches differently)
I hope it looks good for you.