Closed Bug 820216 Opened 12 years ago Closed 12 years ago

[bluetooth] Pairing screen shows incorrect character for apostrophe

Categories

(Firefox OS Graveyard :: General, defect, P3)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+, firefox19 fixed, firefox20 fixed, b2g18 fixed)

VERIFIED FIXED
B2G C3 (12dec-1jan)
blocking-basecamp +
Tracking Status
firefox19 --- fixed
firefox20 --- fixed
b2g18 --- fixed

People

(Reporter: marcia, Assigned: echou)

Details

(Keywords: unagi)

Attachments

(3 files)

Attached image Screenshot of issue
Seen while running the daily smoketest using the 20121210 build

STR:
1. Set the language to Portuguese during the first run
2. Set the language back to English during the smoketest
3. Run the smoketest to pair the unagi device with another bluetooth device

Expected: I would receive a screen which shows the plural of Mozilla
Actual: I get the attached screenshot
I encountered the same problem when trying to pair an Apple Bluetooth Keyboard; screenshot attached.

Looks like an encoding thing -- the curly quote mark ’ encodes to UTF-8 as \xe2\x80\x99 -- character U+00E2 is "â" and U+0080 and U+0099 are invisible control characters.
blocking-basecamp: --- → ?
Triage: BB+, P3, C3 - incorrect character for apostrophe doesn't make sense to user at all. 
Evelyn, can you take a quick look? could this be gecko issue?
Assignee: nobody → ehung
blocking-basecamp: ? → +
Component: Gaia::Bluetooth File Transfer → General
Priority: -- → P3
QA Contact: wachen
Target Milestone: --- → B2G C3 (12dec-1jan)
QA Contact: wachen
Eric, can you take a look? Talked to Evelyn, it seems like Gaia is showing whatever that's passed to Gaia.
Assignee: ehung → echou
JS_NewUCStringCopyN should be used to create a JSString from an Unicode string(in this case, it's a nsString). Currently we are using JS_NewStringCopyN,  which is used to deal with C character arrays.

Please refer to the link below for more information.

* https://developer.mozilla.org/en-US/docs/SpiderMonkey/JSAPI_Reference/JS_NewStringCopyN
Attachment #695734 - Flags: review?(gyeh)
Comment on attachment 695734 [details] [diff] [review]
patch 1: v1: should use JS_NewUCStringCopyN to copy a Unicode string

Review of attachment 695734 [details] [diff] [review]:
-----------------------------------------------------------------

r=me. Thanks you for fixing this. :)
Attachment #695734 - Flags: review?(gyeh) → review+
https://hg.mozilla.org/mozilla-central/rev/a146aac182ef
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Device: Unagi
Build Identifier: 20130113070202
Update channel: 
   nightly b2g18 (pvt server)  
   unagi.zip	13-Jan-2013 08:06 	100M	 
   https://pvtbuilds.mozilla.org/pub/mozilla.org/b2g/nightly/mozilla-b2g18-unagi-eng/
Git commit info: 2013-11-13 15:15:51

Verified fixed
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: