]> Skullheadx's Git Forge - dmenu.git/commit
overhaul utf8decode()
authorNRK <nrk@disroot.org>
Thu, 4 Jul 2024 21:25:37 +0000 (21:25 +0000)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 14 Jul 2024 09:42:55 +0000 (11:42 +0200)
commit51e32d49b56c86cd288c64fccf6cd765547781b9
tree8773a578aaab8fe2882ac9651b19498e6ed61c2b
parent7be720cc88ed2294338f7182600df10f21c575ce
overhaul utf8decode()

this changes the utf8decode function to:

* report when an error occurs
* report how many bytes to advance on error

these will be useful in the next commit to render invalid utf8
sequences.

the new implementation is also shorter and more direct.
drw.c