Closed Bug 1091429 Opened 10 years ago Closed 10 years ago

B2G RIL: Correct UCS2 handling for EFPNN.

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.0M+, b2g-v2.0M fixed, b2g-v2.1 affected, b2g-v2.2 affected)

RESOLVED FIXED
2.1 S8 (7Nov)
blocking-b2g 2.0M+
Tracking Status
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)

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
Attachment #8514063 - Flags: review?(echen)
blocking-b2g: --- → 2.0M?
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
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+
Group: woodduck-confidential
Group: woodduck-confidential
blocking-b2g: 2.0M+ → 2.0M?
Keywords: checkin-needed
blocking-b2g: 2.0M? → 2.0M+
Flags: needinfo?(kli)
blocking-b2g: 2.0M? → 2.0M+
Attachment #8514725 - Attachment is obsolete: true
Attachment #8514742 - Flags: review+
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
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
Blocks: Woodduck
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: