Closed
Bug 547627
Opened 15 years ago
Closed 15 years ago
formattm test fails on windows mobile
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.2
People
(Reporter: blassey, Assigned: blassey)
References
Details
Attachments
(1 file, 2 obsolete files)
|
2.70 KB,
patch
|
dougt
:
review+
beltzner
:
approval1.9.2.2-
|
Details | Diff | Splinter Review |
There are a couple of problems with the strftime in the shunt that PR_FormatTime relies on.
1) the version of wcsftime that takes a narrow pattern seems to be broken, just returns garbage.
2) if wcsftime fails, we try to convert that wide char garbage to narrow chars
2a) the return value of WideCharToMultiByte is meaningless if wcsftime fails (garbage in, garbage out).
Attachment #428119 -
Flags: review?(dougt)
Comment 1•15 years ago
|
||
Brad,
Since your patch modifies only build/wince/shunt/time.cpp
and not any NSPR file, perhaps you should change the Product
of this bug report to the wince shunt library.
Comment 2•15 years ago
|
||
Comment on attachment 428119 [details] [diff] [review]
patch
test for null tmpBuf.
test for a zero wpatlen.
test for null wpat.
Attachment #428119 -
Flags: review?(dougt) → review-
| Assignee | ||
Comment 3•15 years ago
|
||
Attachment #428119 -
Attachment is obsolete: true
Attachment #428319 -
Flags: review?(dougt)
| Assignee | ||
Updated•15 years ago
|
Assignee: wtc → nobody
Component: NSPR → Build Config
Product: NSPR → Core
QA Contact: nspr → build-config
Target Milestone: --- → mozilla1.9.2
Version: other → Trunk
Comment 4•15 years ago
|
||
Comment on attachment 428319 [details] [diff] [review]
patch v.2
>+ if (!tmpBuf) {
>+ free(wpat);
>+ return 0;
>+ }
>+ MultiByteToWideChar(CP_ACP, 0, pat, -1, wpat, wpatlen);
> if (!tmpBuf)
> return 0;
I do not understand the second test here. Shouldn't you test for the result of MultiByteToWideChar, or the length of wpatlen, or both?
| Assignee | ||
Comment 5•15 years ago
|
||
Assignee: nobody → bugmail
Attachment #428319 -
Attachment is obsolete: true
Attachment #428321 -
Flags: review?(dougt)
Attachment #428319 -
Flags: review?(dougt)
Updated•15 years ago
|
Attachment #428321 -
Attachment is patch: true
Attachment #428321 -
Attachment mime type: application/octet-stream → text/plain
Comment 6•15 years ago
|
||
Comment on attachment 428321 [details] [diff] [review]
patch v.3
not a big fan of deep nesting, but..
Attachment #428321 -
Flags: review?(dougt) → review+
| Assignee | ||
Comment 7•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•15 years ago
|
Attachment #428321 -
Flags: approval1.9.2.2?
Comment 8•15 years ago
|
||
Comment on attachment 428321 [details] [diff] [review]
patch v.3
Hey Brad, trying to understand what this blocks in terms of your Fennec progress.
I don't think we're going to take this unless it's a Fennec blocker.
Attachment #428321 -
Flags: approval1.9.2.2? → approval1.9.2.2-
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•