xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
579 stars 272 forks source link

fix double decode in `debugWindow` #818

Closed geekosaur closed 1 year ago

geekosaur commented 1 year ago

Description

At some point peekCString became locale aware. This is a double bug, since (a) decodeString was being applied to the result and (b) the locale might not be UTF-8, but the string being decoded always is.

The fix is to use peekCAString which bypasses the locale decode, then continuing to do UTF-8 decode.

Checklist