on master help sign in
UnicodeWidthTable.Query: significantly raise testing upper bound
commit3d8dbf6ffdc09fdecb10b428e8d69ed62c6d3795 authorJonathan Daugherty <cygnus@foobox.com> dateThu 5 Mar 2020, 14:27 (7 years ago) parent4401f55
1 file changed+1−7
src/Graphics/Vty/UnicodeWidthTable/Query.hs+1−7
src/Graphics/Vty/UnicodeWidthTable/Query.hs+1−7
@@ -53,14 +53,8 @@ mkRanges pairs =
5353
5454-- The uppermost code point to consider when building Unicode width
5555-- tables.
56−--
57−-- This only covers some of the possible Unicode range and is sure to
58−-- become stale eventually. Granted, at the time of this writing, even
59−-- the latest version of Unicode (13) totals 143,859 characters and that
60−-- only gets us to code point 0x231f3 or so. But it's only a matter of
61−-- time before this bound is too low.
6256unicodeTableUpperBound :: Char
63−unicodeTableUpperBound = '\x2FFFF'
57+unicodeTableUpperBound = '\xe0000'
6458
6559-- | Construct a unicode character width table by querying the terminal
6660-- connected to stdout. This works by emitting characters to stdout