[Bug 17490] `entities.json` is invalid syntax and has incorrect content

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17490

--- Comment #3 from Mathias Bynens <mathias@qiwi.be> 2012-06-15 07:41:41 UTC ---
Possible fix for `entity-processor-json.py`:

Replace:

    codes = '0x' + value[1:6] + ', 0x' + value[7:]

With:

    codes = str(int(value[1:6], 16)) + ', ' + str(int(value[7:], 16))

And replace:

    codes = '0x' + value[1:]

With:

    codes = str(int(value[1:], 16))

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 15 June 2012 07:41:47 UTC