Closed Bug 547627 Opened 15 years ago Closed 15 years ago

formattm test fails on windows mobile

Categories

(Firefox Build System :: General, defect)

ARM
Windows Mobile 6 Professional
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2

People

(Reporter: blassey, Assigned: blassey)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — 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)
Blocks: 547626
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 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-
Attached patch patch v.2 (obsolete) — Splinter Review
Attachment #428119 - Attachment is obsolete: true
Attachment #428319 - Flags: review?(dougt)
Assignee: wtc → nobody
Component: NSPR → Build Config
Product: NSPR → Core
QA Contact: nspr → build-config
Target Milestone: --- → mozilla1.9.2
Version: other → Trunk
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?
Attached patch patch v.3Splinter Review
Assignee: nobody → bugmail
Attachment #428319 - Attachment is obsolete: true
Attachment #428321 - Flags: review?(dougt)
Attachment #428319 - Flags: review?(dougt)
Attachment #428321 - Attachment is patch: true
Attachment #428321 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 428321 [details] [diff] [review] patch v.3 not a big fan of deep nesting, but..
Attachment #428321 - Flags: review?(dougt) → review+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #428321 - Flags: approval1.9.2.2?
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-
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: