php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69053 WideCharToMultiByte not using dwFlags
Submitted: 2015-02-14 18:24 UTC Modified: 2015-02-22 04:22 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jamiep at p-pdata dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 5.6.5 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-02-14 18:24 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-02-14 18:38 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-02-14 18:38 UTC] ab@php.net
Could you please supply a test case for this?

Thanks.
 [2015-02-22 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC