<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/testes/utf8.lua, branch v5.5.1</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.5.1</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.5.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2026-02-18T16:24:04+00:00</updated>
<entry>
<title>BUG: shift overflow in utf-8 decode</title>
<updated>2026-02-18T16:24:04+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2026-02-18T16:24:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=10eb89d1141dc528806b32401e408e36fb2f3bf5'/>
<id>urn:sha1:10eb89d1141dc528806b32401e408e36fb2f3bf5</id>
<content type='text'>
An initial byte \xFF will ask for 7 continuation bytes, and then the
shift by (count * 5) will try to shift 35 bits.
</content>
</entry>
<entry>
<title>Correction in utf8.offset</title>
<updated>2025-07-18T19:10:28+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-07-18T19:10:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ccb8b307f11c7497e61f617b12f3a7f0a697256c'/>
<id>urn:sha1:ccb8b307f11c7497e61f617b12f3a7f0a697256c</id>
<content type='text'>
Wrong utf-8 character may have no continuation bytes.
</content>
</entry>
<entry>
<title>Variable attributes can prefix name list</title>
<updated>2025-05-18T14:43:43+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-18T14:43:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=abbae57c7844b1121e7251d56f681394f20c1821'/>
<id>urn:sha1:abbae57c7844b1121e7251d56f681394f20c1821</id>
<content type='text'>
In this format, the attribute applies to all names in the list;
e.g. "global&lt;const&gt; print, require, math".
</content>
</entry>
<entry>
<title>Collective declaration for globals ('global *')</title>
<updated>2025-05-13T14:43:10+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-05-13T14:43:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=3b9dd52be02fd43c598f4adb6fa7844e6a573923'/>
<id>urn:sha1:3b9dd52be02fd43c598f4adb6fa7844e6a573923</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Details (typos in comments)</title>
<updated>2025-04-23T14:36:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-04-23T14:36:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed'/>
<id>urn:sha1:9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed copyright notice from 'testes/all.lua'</title>
<updated>2025-03-12T17:00:58+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-12T17:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=ab66652b3270b95222dea134b5e47bb3afc434cc'/>
<id>urn:sha1:ab66652b3270b95222dea134b5e47bb3afc434cc</id>
<content type='text'>
All test files refer to the main copyright notice in 'lua.h'.
</content>
</entry>
<entry>
<title>utf8.offset returns also final position of character</title>
<updated>2024-05-27T14:29:39+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-05-27T14:29:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=814213b65fa4ab2b1a7216d06f68a6f3df89efcd'/>
<id>urn:sha1:814213b65fa4ab2b1a7216d06f68a6f3df89efcd</id>
<content type='text'>
'utf8.offset' returns two values: the initial and the final position
of the given character.
</content>
</entry>
<entry>
<title>More control over encoding of test files</title>
<updated>2023-08-17T13:42:56+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-08-17T13:42:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f4211a5ea4e235ccfa8b8dfa46031c23e9e839e2'/>
<id>urn:sha1:f4211a5ea4e235ccfa8b8dfa46031c23e9e839e2</id>
<content type='text'>
The few UTF-8 test files are commented as such, and there is only one
non UTF-8 test file (to test non UTF-8 sources).
</content>
</entry>
<entry>
<title>Avoid excessive name pollution in test files</title>
<updated>2022-12-28T21:34:11+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-12-28T21:34:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=314745ed8438d1276c6c928d5f9d4be018dfadb6'/>
<id>urn:sha1:314745ed8438d1276c6c928d5f9d4be018dfadb6</id>
<content type='text'>
Test files are more polite regarding the use of globals when locals
would do, and when globals are necessary deleting them after use.
</content>
</entry>
<entry>
<title>Bug: 'utf8.codes' accepts spurious continuation bytes</title>
<updated>2022-09-23T13:41:16+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2022-09-23T13:41:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a1089b415a3f5c753aa1b40758ffdaf28d5701b0'/>
<id>urn:sha1:a1089b415a3f5c753aa1b40758ffdaf28d5701b0</id>
<content type='text'>
</content>
</entry>
</feed>
