Closed Bug 1186391 Opened 9 years ago Closed 9 years ago

nsIConverterOutputStream fails with some charset in Firefox 38esr

Categories

(Core :: Internationalization, defect)

38 Branch
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: intendentedelleacque, Unassigned)

References

Details

(Keywords: testcase-wanted)

Attachments

(1 file, 1 obsolete file)

1.74 KB, application/x-xpinstall
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0 Build ID: 20150624141335 Steps to reproduce: I write a small extension for my office, that needs to write data converting them from UTF8 to CP850. To do that, I use nsIConverterOutputStream and then converter.init(nsIFile, "cp850", 0, 0). Actual results: This works perfectly on Firefox31esr, but will fail on Firefox38esr, returning an error on converter.init(nsIFile, "cp850", 0, 0). Expected results: Converter components should work on Firefox38esr as it does on Firefox31esr
Could you attach a minimal extension (or HTML file) showing up the issue, it would help to find a possible regression range.
Flags: needinfo?(intendentedelleacque)
Keywords: testcase-wanted
Attached file test.xpi (obsolete) —
Minimal test for bug 1186391
Flags: needinfo?(intendentedelleacque)
Install the test.xpi I provided above on a Windows machine, then: 1) open the url chrome://ancvg/content/etichette.html 2) put some text in textarea and click "save" button 3) the content of textarea will be saved in C:\testfile.txt with encoding cp850 and you will get a "Done" alert On Firefox 31esr everything works. On Firefox 38esr and 39 it will fail with this error in Console: Component returned failure code: 0x80500001 [nsIConverterOutputStream.init] etichette.html:14:0 If you edit manually the file chrome://ancvg/content/etichette.html, you will find out that with some encodings (for ex. cp850, cp858) it fails, some oters (for ex. iso8859-1) it works.
(In reply to intendentedelleacque from comment #3) > Install the test.xpi I provided above on a Windows machine, then: > > 1) open the url chrome://ancvg/content/etichette.html When I enter this URL, I get "File not found". Did you join the file in the xpi?
Flags: needinfo?(intendentedelleacque)
Attached file testcase n.2
Attachment #8637755 - Attachment is obsolete: true
Flags: needinfo?(intendentedelleacque)
No it was there, try this test2.xpi
Still "File not found" with version #2.
Component: Untriaged → Internationalization
Product: Firefox → Core
Blocks: 997124
So if I understand well https://bugzilla.mozilla.org/show_bug.cgi?id=997124 , these encodings are not supported anymore? So we will be forced to have a Firefox esr31 just to use that extension :/
Considering that the bug 1997124 was fixed and encoding are not supported anymore, I will mark this issue as Resolved - Won`t Fix. Thanks, Cosmin.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: