<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lstrlib.c, branch v5.4.9</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.4.9</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.4.9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2026-07-24T14:21:24+00:00</updated>
<entry>
<title>Bug: wrong initialization in result from 'gmatch'</title>
<updated>2026-07-24T14:21:24+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2026-07-24T14:21:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e282da498cbf0bd5ea474b38bd61f6a1453d035d'/>
<id>urn:sha1:e282da498cbf0bd5ea474b38bd61f6a1453d035d</id>
<content type='text'>
Function returned by 'string.gmatch' can be left in an inconsistent
state after an error.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2023-04-18T12:44:10+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-04-18T12:44:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=e15f1f2bb7a38a3c94519294d031e48508d65006'/>
<id>urn:sha1:e15f1f2bb7a38a3c94519294d031e48508d65006</id>
<content type='text'>
Typos in comments and details in the manual.
</content>
</entry>
<entry>
<title>Documentation</title>
<updated>2021-10-11T16:49:13+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-10-11T16:49:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=87a9573b2eb3f1da8e438f92ade994160d930b09'/>
<id>urn:sha1:87a9573b2eb3f1da8e438f92ade994160d930b09</id>
<content type='text'>
Better explanation about the guaranties of multiple assignment in
the manual.
</content>
</entry>
<entry>
<title>Revamp of format validation in 'string.format'</title>
<updated>2021-09-03T16:14:56+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-09-03T16:14:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9db4bfed6bb9d5828c99c0f24749eedf54d70cc2'/>
<id>urn:sha1:9db4bfed6bb9d5828c99c0f24749eedf54d70cc2</id>
<content type='text'>
When calling 'sprintf', not all conversion specifiers accept all
flags; some combinations are undefined behavior.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2021-05-24T19:48:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-05-24T19:48:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=1e6918d553e0d76148f7de0af63fdce326e049b8'/>
<id>urn:sha1:1e6918d553e0d76148f7de0af63fdce326e049b8</id>
<content type='text'>
- Removed unused (and trivial) definition LUA_UNSIGNEDBITS
- Alignment structure in pack/unpack moved to a narrower scope
</content>
</entry>
<entry>
<title>Broadening the use of branch hints</title>
<updated>2021-02-24T14:14:44+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2021-02-24T14:14:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=59c88f846d1dcd901a4420651aedf27816618923'/>
<id>urn:sha1:59c88f846d1dcd901a4420651aedf27816618923</id>
<content type='text'>
More uses of macros 'likely'/'unlikely' (renamed to
'l_likely'/'l_unlikely'), both in range (extended to the
libraries) and in scope (extended to hooks, stack growth).
</content>
</entry>
<entry>
<title>Cleaner handling of floats in pack/unpack</title>
<updated>2020-12-16T14:23:51+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-12-16T14:23:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b17178b27a55bd5eeb51538bec935972fd58f1ea'/>
<id>urn:sha1:b17178b27a55bd5eeb51538bec935972fd58f1ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>No need for 'volatile' in string.pack/unpack</title>
<updated>2020-10-12T15:29:09+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-10-05T13:38:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=fb172d0a929432856983a51d4139f705d4c01365'/>
<id>urn:sha1:fb172d0a929432856983a51d4139f705d4c01365</id>
<content type='text'>
Type punning an address to 'char *' should be always safe.
</content>
</entry>
<entry>
<title>Wrong cast in 'str_unpack'</title>
<updated>2020-09-30T18:10:12+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-09-30T18:10:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=f83de8e34e24e30acf277f60de62a33bd51d1ddd'/>
<id>urn:sha1:f83de8e34e24e30acf277f60de62a33bd51d1ddd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed bug in 'string.format("%p")'</title>
<updated>2020-03-16T17:13:13+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2020-03-16T17:13:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=513559cc4760392b6fa33754c516683ef49dba22'/>
<id>urn:sha1:513559cc4760392b6fa33754c516683ef49dba22</id>
<content type='text'>
The string "(null)" used for non-collectable values must be printed as a
string, not as a pointer. (Bug introduced in commit e0cbaa50fa7).
</content>
</entry>
</feed>
