Closed Bug 498845 Opened 16 years ago Closed 16 years ago

libbz2 can't use fdopen on windows ce

Categories

(Core :: General, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: blassey, Assigned: hiro)

References

Details

(Keywords: mobile)

Attachments

(2 files)

No description provided.
Attachment #383657 - Flags: review?(benjamin)
Blocks: 458950
WinCE has _wfdopen. http://msdn.microsoft.com/en-us/library/ms861280.aspx But the document is wrong. The first argument of its function seems void*. from stdlib.h in Pocket PC SDK. _CRTIMP FILE* __cdecl _wfdopen(void*, const wchar_t*);
Attached patch Use _wfdopenSplinter Review
WinCE has also _setmode and _O_BINARY.
#include <windows.h> #include <stdlib.h> int wmain (int argc, wchar_t *argv) { FILE *fp; fp = _wfdopen(_fileno(stdout), L"a"); fwrite("test\n", strlen("test\n"), 1, fp); fclose(fp); } This test program outputs "test" string on Emulator. So we can use _wfdopen.
Attachment #384746 - Flags: review+
Attachment #383657 - Flags: review?(benjamin) → review-
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Assignee: nobody → hiikezoe
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: