Closed
Bug 1091429
Opened 10 years ago
Closed 10 years ago
B2G RIL: Correct UCS2 handling for EFPNN.
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(blocking-b2g:2.0M+, b2g-v2.0M fixed, b2g-v2.1 affected, b2g-v2.2 affected)
People
(Reporter: sku, Assigned: sku)
References
Details
Attachments
(2 files, 1 obsolete file)
3.45 KB,
patch
|
sku
:
review+
|
Details | Diff | Splinter Review |
3.43 KB,
patch
|
sku
:
review+
|
Details | Diff | Splinter Review |
According to 3GPP TS 11.11 Annex B, we should follow ISO/IEC 10646 for UCS2 string handling.
Currently, we do not parse first octet correctly (see [1]), this will cause PNN with UCS2 format can not be parsed properly.
[1] - http://dxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_worker.js?from=ril_worker.js&case=true#8855
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8514063 -
Flags: review?(echen)
Assignee | ||
Updated•10 years ago
|
blocking-b2g: --- → 2.0M?
status-b2g-v2.0M:
--- → affected
status-b2g-v2.1:
--- → affected
status-b2g-v2.2:
--- → affected
Updated•10 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Comment 3•10 years ago
|
||
Comment on attachment 8514063 [details] [diff] [review]
Bug 1091429 - B2G RIL: Correct UCS2 handling for EFPNN.
Review of attachment 8514063 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with below comments addressed, thank you.
::: dom/system/gonk/tests/test_ril_worker_icc_SimRecordHelper.js
@@ +609,5 @@
> +add_test(function test_pnn_with_different_coding_scheme() {
> + let worker = newUint8Worker();
> + let context = worker.ContextPool._contexts[0];
> + let record = context.SimRecordHelper;
> + let helper = context.GsmPDUHelper;
nit: s/helper/pduHelper/
@@ +622,5 @@
> + // UCS2 with 0x81 - "Mozilla\u694a"
> + [0x43, 0x0E, 0x90, 0x81, 0x08, 0xd2, 0x4d, 0x6f, 0x7a, 0x69, 0x6c, 0x6c, 0x61, 0xca, 0xff, 0xff],
> + // USC2 with 0x82 - "Mozilla\u694a"
> + [0x43, 0x0F, 0x90, 0x82, 0x08, 0x69, 0x00, 0x4d, 0x6f, 0x7a, 0x69, 0x6c, 0x6c, 0x61, 0xca, 0xff, 0xff]];
> + let expectedResult = ["Test1", "Test1", "Mozilla\u694a", "Mozilla\u694a"];
Put the raw data and expectedResult together.
let test_data = [{
pnn: [ ... ],
expectedResult: "...."
},{
....
....
}];
@@ +649,5 @@
> + ril.appType = CARD_APPTYPE_SIM;
> + for (let i = 0; i < pnn.length; i++) {
> + do_test_pnn(pnn[i], expectedResult[i]);
> +
> + do_check_eq(ril.iccInfoPrivate.PNN[0].fullName, expectedResult[i]);
Move the check into do_test_pnn().
@@ +652,5 @@
> +
> + do_check_eq(ril.iccInfoPrivate.PNN[0].fullName, expectedResult[i]);
> +
> + // Reset PNN info for next test
> + ril.iccInfoPrivate.PNN = null;
And this.
Attachment #8514063 -
Flags: review?(echen) → review+
Updated•10 years ago
|
Group: woodduck-confidential
Updated•10 years ago
|
Group: woodduck-confidential
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8514063 -
Attachment is obsolete: true
Attachment #8514725 -
Flags: review+
Assignee | ||
Comment 5•10 years ago
|
||
blocking-b2g: 2.0M+ → 2.0M?
Keywords: checkin-needed
Updated•10 years ago
|
blocking-b2g: 2.0M? → 2.0M+
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(kli)
Updated•10 years ago
|
blocking-b2g: 2.0M? → 2.0M+
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8514725 -
Attachment is obsolete: true
Attachment #8514742 -
Flags: review+
Comment 7•10 years ago
|
||
Flags: needinfo?(kli)
Keywords: checkin-needed
Assignee | ||
Updated•10 years ago
|
Attachment #8514725 -
Attachment description: Bug 1091429 - B2G RIL: Correct UCS2 handling for EFPNN. r=Edgar. → [2.0m] Bug 1091429 - B2G RIL: Correct UCS2 handling for EFPNN. r=Edgar.
Attachment #8514725 -
Attachment is obsolete: false
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
You need to log in
before you can comment on or make changes to this bug.
Description
•