FreeRDP/FreeRDP — pull request #859 by awakecoding (2012-12-17 15:47:46+00:00)
Title: Unicode Conversion Fix

Added unit tests for WideCharToMultiByte and MultiByteToWideChar

Properly documented and tested API behavior, especially with regards to input and output sizes and null termination of strings to avoid incorrect size assumptions and off-by-one errors.

Added ConvertFromUnicode() and ConvertToUnicode() safe wrappers for WideCharToMultiByte and MultiByteToWideChar.

Removed deprecated FreeRDP unicode utils

The old unicode utils were simply wrong in many regards, this fixes issues with unicode conversion for drive redirection. Russian filenames used to be incorrectly encoded and decoded, now they work perfectly fine.