Unit test /netwerk/test/unit/test_bug419157.js fails on Japanese Windows

NEW
Unassigned

Status

()

Core
Networking
P5
critical
9 years ago
5 months ago

People

(Reporter: Masahiro YAMADA, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-would-take])

(Reporter)

Description

9 years ago
Unit test test_bug419157.js fails on Windows XP Japanese Edition.

Updated

9 years ago
Component: Download Manager → Networking
Product: Toolkit → Core
QA Contact: download.manager → networking
(Reporter)

Updated

9 years ago
Summary: Unit test /netwerk/test/test_bug419157.js fails on Japanese Windows → Unit test /netwerk/test/unit/test_bug419157.js fails on Japanese Windows
(Reporter)

Comment 1

9 years ago
I inserted following code before
   do_check_eq(result, expected);
------------------
  var t = "";
  for (i = 0; i < expected.length; i++) {
     t = t + " " + expected.charCodeAt(i).toString(16);
  }
  dump("expected=" + t + "\n");
  t = "";
  for (i = 0; i < result.length; i++) {
     t = t + " " + result.charCodeAt(i).toString(16);
  }
  dump("result  =" + t + "\n");
-----------------------
And, Its result is here:
  expected= 49 54 38 33 39 4 b5 28 6d 38 29 32 2e 70 64 66
  result  = 49 54 38 33 39 4 ff75 28 6d 38 29 32 2e 70 64 66
-----------------------------------------
So, 0xB5 is decoded as ff75.
DBCS charset of Japanese Windows is Shift_JIS , not Latin-1.
And, At Shift_JIS, 0xB5 is mapped to Unicode U+ff75.
Whiteboard: [necko-would-take]
You need to log in before you can comment on or make changes to this bug.