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

Bring Lua to 5.4.4. #873

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

michaellenaghan
Copy link
Contributor

@michaellenaghan michaellenaghan commented Jul 29, 2023

The upstream Lua 5.4.3 to 5.4.4 diff is here.

The Cosmo Lua 5.4.3 to 5.4.4 diff is here.

This prepares the ground for bringing Lua up to 5.4.6. It adds some missing copyrights, removes some overlooked copyrights, makes vertical whitespace consistent across files and adds `[jart]` comments in various places to make subsequent Lua comparisons easier. Well. Hopefully.

In theory, nothing here is controversial.

If we merge this, the 5.4.4 update will be “all signal, no noise.” But the noise level isn’t all that high, so it probably doesn’t matter all that much.
I discovered that five test files were encoded with ISO-8859-1 rather than UTF-8:

```
$ iconv -f UTF-8 third_party/lua/test/*.lua >/dev/null
iconv: third_party/lua/test/db.lua:299:33: cannot convert
iconv: third_party/lua/test/files.lua:95:18: cannot convert
iconv: third_party/lua/test/pm.lua:76:19: cannot convert
iconv: third_party/lua/test/sort.lua:292:6: cannot convert
iconv: third_party/lua/test/strings.lua:94:39: cannot convert

$ file third_party/lua/test/db.lua
third_party/lua/test/db.lua: ISO-8859 text

$ file third_party/lua/test/files.lua
third_party/lua/test/files.lua: ISO-8859 text

$ file third_party/lua/test/pm.lua
third_party/lua/test/pm.lua: ISO-8859 text

$ file third_party/lua/test/sort.lua
third_party/lua/test/sort.lua: ISO-8859 text

$ file third_party/lua/test/strings.lua
third_party/lua/test/strings.lua: ISO-8859 text
```
Some tests — in `files.lua` and `pm.lua` — count bytes. Since the byte count of encoded characters changes from ISO-8859-1 to UTF-8, the tests fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant