Skip to content

Commit ff7c132

Browse files
authored
PoeCharm detection now checks for global utf8 table (#6675)
1 parent 31c0990 commit ff7c132

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Modules/Main.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,8 @@ the "Releases" section of the GitHub page.]])
262262
end
263263

264264
function main:DetectUnicodeSupport()
265-
-- In PoeCharm returns a valid width, in normal PoB returns 2142240768
266-
local w = DrawStringWidth(16, "VAR", "\195\164") -- U+00E4 LATIN SMALL LETTER A WITH DIAERESIS
267-
self.unicode = w > 0 and w < 100
265+
-- PoeCharm has utf8 global that normal PoB doesn't have
266+
self.unicode = type(_G.utf8) == "table"
268267
if self.unicode then
269268
ConPrintf("Unicode support detected")
270269
end

0 commit comments

Comments
 (0)