Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't output Unicode escape sequences for Lua 5.1 #32

Open
khang06 opened this issue Jan 13, 2024 · 0 comments
Open

Don't output Unicode escape sequences for Lua 5.1 #32

khang06 opened this issue Jan 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@khang06
Copy link

khang06 commented Jan 13, 2024

Here's the decompiled output for a game that uses Lua 5.1:

-- filename: 
-- version: lua51
-- line: [0, 0] id: 0
Lua.require("Item.Cake.CommonSetup")
g_setupInfo = {
  path = "Item/Cake/CAKE06/",
}
function setup(r0_1)
  -- line: [12, 23] id: 1
  Item.setName(r0_1, "ドロドロおはぎ")
  Item.Status.setPrice(r0_1, 50)
  Item.setAboutText(r0_1, "【どろどろおはぎ】\n" .. "\u{3000}完全に手遅れなおはぎ。\n" .. "\n" .. "\u{3000}もはや原形を留めていない……。")
end

The decompiler transforms one of the characters into a Unicode escape sequence (\u{3000}), but this isn't supported in Lua 5.1, so this doesn't work when executed in that environment.

@metaworm metaworm added the enhancement New feature or request label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants