Closed
Bug 498845
Opened 14 years ago
Closed 14 years ago
libbz2 can't use fdopen on windows ce
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: blassey, Assigned: hiro)
References
Details
(Keywords: mobile)
Attachments
(2 files)
364 bytes,
patch
|
benjamin
:
review-
|
Details | Diff | Splinter Review |
986 bytes,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #383657 -
Flags: review?(benjamin)
Assignee | ||
Comment 1•14 years ago
|
||
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*);
Assignee | ||
Comment 2•14 years ago
|
||
WinCE has also _setmode and _O_BINARY.
Assignee | ||
Comment 3•14 years ago
|
||
#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.
Updated•14 years ago
|
Attachment #384746 -
Flags: review+
Updated•14 years ago
|
Attachment #383657 -
Flags: review?(benjamin) → review-
Reporter | ||
Comment 4•14 years ago
|
||
pushed http://hg.mozilla.org/mozilla-central/rev/a152ab60e76d
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Assignee: nobody → hiikezoe
You need to log in
before you can comment on or make changes to this bug.
Description
•