Closed Bug 495389 Opened 16 years ago Closed 15 years ago

"unterminated string literal" when array contains iso-8859-2 characters

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: moz_poro, Unassigned)

Details

(Whiteboard: [CLOSEME 2010-11-15])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090526 Minefield/3.6a1pre Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090526 Minefield/3.6a1pre "Unterminated string literal" error is shown on error console with var str = new Array('Ë') when some specific character encoding is used, for example iso-8859-2. Reproducible: Always Steps to Reproduce: 1. Open Error console 2. Load the attached test page Actual Results: "Are we ok?" is shown on the browser. Error Console shows Error: unterminated string literal Source File: file:///home/teturtia/sbhome/html/Bug-109906-test/test.html Line: 7, Column: 22 Source Code: var str = new Array('Ă�); Expected Results: "Are we ok? OK!" is shown on the browser, no errors in the console. This error occurs when character encoding is for example iso-8859-2 or iso-8859-15. If you change the character encoding to for example iso-8859-1 or iso-8859-3 the test case shows the expected results. The test sequence works as expected with Firefox 3.0.10, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10. But fails with Minefield, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090526 Minefield/3.6a1pre. The test case is a minimal test case reduced from the problem page at onet.pl and according to wikipedia "Onet.pl is the largest Polish web portal."
Attached file Test case page
(In reply to comment #0) > Steps to Reproduce: > 1. Open Error console > 2. Load the attached test page It seems that when clicking on the attached test case page the character encoding is detected as utf-8, so you should propably manually set the character encoding to iso-8859-2 to trigger the buggy behaviour.
This bug was reported using Firefox 3.0 or older, which is no longer supported. The bug has also not been changed in over 500 days and is still in UNCO. Reporter, please retest this bug in Firefox 3.6.10 or later using a fresh profile, http://support.mozilla.com/en-US/kb/managing+profiles. If you still see this problem, please update the bug. If you no longer see the bug, please set the resolution to RESOLVED, WORKSFORME. This is a mass search of unconfirmed bugs that have no activity on them, so if you feel a bug was marked in error, just remove the CLOSEME comment in the whiteboard within the next month.
Whiteboard: [CLOSEME 2010-11-15]
Works as expected with Firefox 3.6.10.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: