diff options
author | Yvan Roux <yvan.roux@foss.st.com> | 2022-05-19 10:58:13 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2022-05-19 10:58:13 +0100 |
commit | 5f3fc928df037b21ee401d7115951b988a3ea571 (patch) | |
tree | a865edf4b69c9083d1ccb239dd649ae9671fb21f /bfd/bfdio.c | |
parent | c4dd8eb523fae5c9d312f4b7b21377eec66e70c3 (diff) | |
download | gdb-5f3fc928df037b21ee401d7115951b988a3ea571.zip gdb-5f3fc928df037b21ee401d7115951b988a3ea571.tar.gz gdb-5f3fc928df037b21ee401d7115951b988a3ea571.tar.bz2 |
_bfd_real_fopen should not use ccs parameter on Windows
PR 25713
* bfdio.c (_bfd_real_fopen): Delete ccs string.
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r-- | bfd/bfdio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index 5c9a655..dc8d391 100644 --- a/bfd/bfdio.c +++ b/bfd/bfdio.c @@ -119,7 +119,6 @@ _bfd_real_fopen (const char *filename, const char *modes) /* PR 25713: Handle extra long path names possibly containing '..' and '.'. */ wchar_t ** lpFilePart = {NULL}; const wchar_t prefix[] = L"\\\\?\\"; - const wchar_t ccs[] = L", ccs=UNICODE"; const size_t partPathLen = strlen (filename) + 1; /* Converting the partial path from ascii to unicode. @@ -151,10 +150,9 @@ _bfd_real_fopen (const char *filename, const char *modes) free (partPath); /* It is non-standard for modes to exceed 16 characters. */ - wchar_t modesW[16 + sizeof(ccs)]; + wchar_t modesW[16]; MultiByteToWideChar (CP_UTF8, 0, modes, -1, modesW, sizeof(modesW)); - wcscat (modesW, ccs); FILE * file = _wfopen (fullPath, modesW); free (fullPath); |