Partially complete GetTextCharsetInfo and corrects return values for