Skip to content

Commit 3c0b96f

Browse files
committed
Proper UTF-8 string loading implemented
1 parent 1fbba23 commit 3c0b96f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

javoc/class/handlers/constantPool.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ constantPoolHandler[1] = function(stream)
1919

2020
local length = binaryUtils.readU2(stream)
2121

22-
-- TODO: Implement proper UTF8 loading
23-
for i = 1, length do
24-
constant.value = constant.value .. string.char(binaryUtils.readU1(stream))
25-
end
22+
constant.value = stream:read(length)
2623

2724
debugPrint("Utf8 constant.")
2825
debugPrint("Lenght - " .. length .. " bytes")

0 commit comments

Comments
 (0)