The default bug view has changed. See this FAQ.

Scratchpad russian codepage

RESOLVED FIXED in Firefox 12

Status

()

Firefox
Developer Tools
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Andrew, Assigned: dchan)

Tracking

({qawanted})

9 Branch
Firefox 12
x86
Windows 7
qawanted
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(4 attachments, 2 obsolete attachments)

(Reporter)

Description

5 years ago
Created attachment 574177 [details]
76867.png

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20100101 Firefox/9.0
Build ID: 20111109112850

Steps to reproduce:

Scratchpad - File - Open File - naroddisknocaptcha@script.user.js (utf-8) - see screen-shot (76867.png)


If i write in clear Scratchpad - all normal.
(Reporter)

Comment 1

5 years ago
Created attachment 574178 [details]
naroddisknocaptcha@script.user.js
(Reporter)

Updated

5 years ago
Version: 9 Branch → unspecified

Updated

5 years ago
Version: unspecified → 9 Branch
Attachment #574178 - Attachment mime type: application/octet-stream → text/javascript
Thanks for the bug report!

This looks like it works fine in Firefox 10+ with Orion enabled.

Presumably this will be a problem in Firefoxes 8-10 with the text-based source editor in place.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(Reporter)

Comment 3

5 years ago
Created attachment 574629 [details]
orion 11

In 8, 9, 10, 11 - same too.
Strange. I'm unable to reproduce this with your attached text on my machine in OS X.

Can anyone with a Windows machine try this out?
Keywords: qawanted
(Assignee)

Comment 5

5 years ago
Not all the characters are displaying for me either.

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0a1) Gecko/20111108 Firefox/10.0a1 ID:20111108031146

OS X 10.6.8

Copying and pasting works fine. The script file also displays properly in Dashcode
(Assignee)

Updated

5 years ago
Assignee: nobody → dchan+bugzilla
(Assignee)

Comment 6

5 years ago
Created attachment 574738 [details] [diff] [review]
convert input to UTF-8

I copied the code from exportToFile and it appears to work. We may be able to remove the manual conversion once bug 655658 lands.
Attachment #574738 - Flags: feedback?
(Assignee)

Comment 7

5 years ago
Created attachment 574743 [details] [diff] [review]
convert input to UTF-8 v2

We probably want to pass the unicode version of the content to the callback. Stupid mistake
Attachment #574738 - Attachment is obsolete: true
Attachment #574738 - Flags: feedback?
Attachment #574743 - Flags: feedback?
(Reporter)

Comment 8

5 years ago
Will be implemented by the wrap of long lines in scratchpad (style editor and other) and file://, ftp://, http://, https://, etc protocols (in default or checkbox in settings)?
Comment on attachment 574743 [details] [diff] [review]
convert input to UTF-8 v2

this looks like it should do the trick.
Attachment #574743 - Flags: feedback? → feedback+
(Assignee)

Comment 10

5 years ago
Hmmm, looking at the documentation again. I'm not sure if converter.Finish() needs to be called when converting to unicode. It seems to work fine without it. Does anyone have more experience with nsIScriptableUnicodeConverter?
(Assignee)

Comment 11

5 years ago
Created attachment 581829 [details] [diff] [review]
convert input to UTF-8 v3

Remove the Finish() call since it is only needed for ConvertFromUnicode() and not ConvertToUnicode()

I need help landing the patch on m-c
Attachment #574743 - Attachment is obsolete: true
Attachment #581829 - Flags: review?(rcampbell)
Duplicate of this bug: 694967
Comment on attachment 581829 [details] [diff] [review]
convert input to UTF-8 v3

I thought I reviewed this already. Sorry for the delay.
Attachment #581829 - Flags: review?(rcampbell) → review+
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/805facc7eb21
Status: NEW → ASSIGNED
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/805facc7eb21
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 12
Duplicate of this bug: 716371
You need to log in before you can comment on or make changes to this bug.