chiark / gitweb /
documentation: provide autocompletion in UTF-8 as well.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jul 2019 15:21:01 +0000 (17:21 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jul 2019 15:48:56 +0000 (17:48 +0200)
commitb34a20c25531702663fa9e41ed3678159f4160f8
tree0f73429d6b3aad21a724a38b2e28ac06a8476fc3
parent4e9cbda2f9e2dc72b918f44a552f3eb4265b65b2
documentation: provide autocompletion in UTF-8 as well.

The search() function returns the result list in UTF-8, but the
autocompletion was not. And of course renderResults() assumed it was in
UTF-8 and decoded it from UTF-8 *twice*. This wasn't discovered until
now because I had no pages with UTF-8 names apart from the test (which
doesn't test the UI stuff).
documentation/search.js
documentation/test/test-search.js