archives

« Bugzilla Issues Index

#205 — Some sputnik tests are UTF-16 encoded which isn't supported by the converter tool


All of the following sputnik tests are encoding in UTF-16LE according to their BOM:
S7.2_A1.5_T2.js
S7.6_A4.2_T1.js
S7.6_A4.2_T2.js

The converter tool does not support UTF-16LE which leads to garbled test cases after the conversion.

For example "test/suite/converted/07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T2.js" currently looks like this:
---
/**
* @path: 07_Lexical_Conventions/7.2_White_Space/S7.2_A1.5_T2.js;
*/

��/
---

The entry in "website/resources/scripts/testcases2/7.2_White_Space.json" is obviously invalid as well:
---
{
"test": "��/"
},
---


Has been fixed, cf. http://hg.ecmascript.org/tests/test262/rev/d212a88dde48