mirror of https://github.com/koreader/koreader
fix strcoll() workaround
The strcoll() workaround we had in place for Kobo devices was (or has become) ineffective. We had set self.strcoll to nil on Kobo devices - but this was the instance variable. Setting it to nil effectively makes the instance variable vanish, so when trying to access it later, it was not there and got looked up via the metatable - which had the original reference. Setting it to nil had no effect whatsoever. We simplify that approach and set the replacement function where before we had set this to nil. This is a partial fix for issue #1183 (and explains a comment in issue #686 which says that the old fix did not work). However, to really fix #1183 - if we want to do so - we would need a collate function that normalizes uppercase/lowercase before compare.pull/1189/head
parent
16459fe442
commit
e031599c0a
Loading…
Reference in New Issue