pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/lua-utf8



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Nov 27 07:29:21 UTC 2026

Modified Files:
        pkgsrc/textproc/lua-utf8: Makefile distinfo

Log Message:
lua-utf8: update to 0.3.0.

Add test target.

luautf8 0.3.0

Unicode 17.0.0 data, NFC correctness fixes for NFC_QC=Maybe characters,
and behavior alignment with Lua 5.5.

Highlights

    Unicode 17.0.0: unidata.h is regenerated from UCD 17.0.0. NFC, case
    folding, categories, East Asian width and grapheme cluster data are updated.
    NFC fixes: NFC_QC=Maybe characters whose canonical decomposition can
    recompose with the surrounding context (e.g. U+113C5 TULU-TIGALARI VOWEL
    SIGN AI, U+16121–U+16128 GURUNG KHEMA, U+16D68 KIRAT RAI) are no longer
    decomposed and left unrecomposed. utf8.isnfc and utf8.normalize_nfc now
    use the same scan, and normalize_nfc's second result always agrees with
    isnfc.
    gmatch / gsub empty matches: aligned with Lua 5.5 on every supported
    Lua version. This fixes the spurious empty matches reported in #64.
    utf8.escape: malformed escapes now raise an error instead of silently
    producing NUL bytes or accepting unclosed brackets.
    gsub: nil/false returns from replacement functions/tables now keep
    the original text and count substitutions correctly.
    LuaLS type definitions (lua-utf8.d.lua), UD_STATIC build option, and
    MSVC 2026 warning fixes.

Breaking changes

    utf8.escape is stricter: code relying on the old lenient handling of a
    trailing %, %x/%u without digits, or unclosed %{...} must be updated.
    utf8.gmatch / utf8.gsub intentionally use Lua 5.5 empty-match semantics
    on Lua 5.1–5.4 hosts too. They may differ from the host's
    string.gmatch / string.gsub in those edge cases.

Note

0.2.1 was published through LuaRocks only (no GitHub release). It added Lua
5.5 support and fixed several utf8.widthindex / utf8.char edge cases;
those changes are included in 0.3.0.

luautf8 0.2.0 - Modernized API & New Truncation Features

🚨 Breaking Changes

This release modernizes the width-related APIs with breaking changes
to parameter names and order. Most users are unaffected (if you
only pass the string argument), but please review the migration
guide below if you use the ambi_is_double parameter.

0.1.6

What's Changed

    Add 'normalize_nfc' and 'isnfc' functions by @alexdowad in #44
    Update to Unicode 15.1 by @data-man in #45
    Add new 'grapheme_indices' function by @alexdowad in #47
    Improve grammar, spelling, and formatting of README.md by @alexdowad in #50
    Fix bugs in NFC normalization code by @alexdowad in #51
    Explicitly include limits.h instead of transitively assuming it by @alerque in #55


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/lua-utf8/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/textproc/lua-utf8/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/lua-utf8/Makefile
diff -u pkgsrc/textproc/lua-utf8/Makefile:1.7 pkgsrc/textproc/lua-utf8/Makefile:1.8
--- pkgsrc/textproc/lua-utf8/Makefile:1.7       Tue Jan 21 14:35:47 2025
+++ pkgsrc/textproc/lua-utf8/Makefile   Fri Nov 27 07:29:21 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2025/01/21 14:35:47 nia Exp $
+# $NetBSD: Makefile,v 1.8 2026/11/27 07:29:21 wiz Exp $
 
-DISTNAME=      lua-utf8-0.1.5
+DISTNAME=      lua-utf8-0.3.0
 PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
 CATEGORIES=    textproc lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=starwing/}
@@ -22,5 +22,9 @@ do-install:
        ${INSTALL_LIB} ${WRKSRC}/lua-utf8.so \
            ${DESTDIR}${PREFIX}/${LUA_CDIR}/lua-utf8.so
 
+# from .github/workflows/test.yml
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${LUA_INTERPRETER} test.lua && ${LUA_INTERPRETER} test_pm.lua && ${LUA_INTERPRETER} test_compat.lua
+
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/lua-utf8/distinfo
diff -u pkgsrc/textproc/lua-utf8/distinfo:1.5 pkgsrc/textproc/lua-utf8/distinfo:1.6
--- pkgsrc/textproc/lua-utf8/distinfo:1.5       Wed Feb  1 12:32:33 2023
+++ pkgsrc/textproc/lua-utf8/distinfo   Fri Nov 27 07:29:21 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2023/02/01 12:32:33 nia Exp $
+$NetBSD: distinfo,v 1.6 2026/11/27 07:29:21 wiz Exp $
 
-BLAKE2s (lua-utf8-0.1.5.tar.gz) = 2ee6bd36ff2f4189c91b0677836f28a426ce34841f1bfabcec76ee1fe0090e6f
-SHA512 (lua-utf8-0.1.5.tar.gz) = 2f7f1e80c27012d2ebcf3da8e9367f00dda9f7b1a7d4adee265ee37ab12a78ef7c94930945e88f060f0ec4186174dd87af80a50917d3b22a71c84f67b0df12d0
-Size (lua-utf8-0.1.5.tar.gz) = 47986 bytes
+BLAKE2s (lua-utf8-0.3.0.tar.gz) = a9695308eccb84b09043099819b2e5cf8a2030d96450baf2dc7c052a92c272d3
+SHA512 (lua-utf8-0.3.0.tar.gz) = b3e750377d814c6f0e026155213db088288aaaf4818e9b42550d1be335a3cb531aae747f3f66fd0cdf08c66aac16cedab83eca05e64781f2a758418cc1c02903
+Size (lua-utf8-0.3.0.tar.gz) = 578194 bytes



Home | Main Index | Thread Index | Old Index