Bug #69053 [Opn->Fbk]: WideCharToMultiByte not using dwFlags
| From: | ab@php.net | Date: | Sat, 14 Feb 2015 18:38:52 +0000 |
| Subject: | Bug #69053 [Opn->Fbk]: WideCharToMultiByte not using dwFlags | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190686@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69053&edit=1
ID: 69053
Updated by: ab@php.net
Reported by: jamiep at p-pdata dot com
Summary: WideCharToMultiByte not using dwFlags
-Status: Open
+Status: Feedback
Type: Bug
Package: COM related
Operating System: Windows
PHP Version: 5.6.5
Block user comment: N
Private report: N
New Comment:
Could you please supply a test case for this?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-02-14 18:24:22] jamiep at p-pdata dot com
Description:
------------
As per https://msdn.microsoft.com/en-us/library/windows/desktop/dd374130%28v=vs.85%29.aspx
The call to WideCharToMultiByte in ext/com_dotnet/com_olechar.c should be specifying
WC_COMPOSITECHECK | WC_ERR_INVALID_CHARS | WC_NO_BEST_FIT_CHARS or loss of data will occur.
Without these flags, strings containing control characters such as ENQ/SOH/EOT do not return full
values.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69053&edit=1