]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1641208: util.file no longer mangles UTF8 when writing JSON
authorGalen Charlton <gmc@esilibrary.com>
Fri, 11 Nov 2016 19:52:11 +0000 (14:52 -0500)
committerJason Etheridge <jason@esilibrary.com>
Wed, 17 May 2017 17:43:46 +0000 (13:43 -0400)
commita44049502364f851d52b9dec9cac99270ca2fede
tree1a8d9e73814ef5012dea7f93bc3d07e15c299711
parentbaf94caad1df88ccda10f5fc1092c4ad8302ead4
LP#1641208: util.file no longer mangles UTF8 when writing JSON

This patch ensures that JSON strings are converted to UTF8
before they are writing to XUL profile files by util.file. Doing this
fixes a bug where by OU names like "ბიზნესისა" can get mangled
in certain XUL client interfaces.

To test
-------
[1] Set an OU name to ბიზნესისა
[2] In the transit list, note that the OU selector displays
    the name as ÑØÖÜÔáØáÐ.
[3] Apply the patch (note that it's not necessary to rebuild
    the staff client to test this).
[4] Restart the staff client, clearing cache beforehand.
[5] Note that the OU name is now displayed correctly in the transit
    list.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/util/file.js