3 Commits

Author SHA256 Message Date
7832fb85eb Upgrade to 0.2.0
Modernized API & New Truncation Features:
  - BREAKING: utf8.width() and utf8.widthindex() parameter order
    changed
  - BREAKING: ambi_is_double (boolean) replaced with ambiwidth
    (integer)
  - NEW: utf8.widthlimit() for intelligent width-based truncation
  - NEW: Byte range parameters i, j for width functions
  - NEW: utf8.version constant
  - IMPROVED: Complete documentation rewrite with examples
  - IMPROVED: Comprehensive test coverage for all new features
  - FIXED: Various grammar and formatting issues in documentation
2026-02-03 02:43:20 +01:00
401feff8a5 Enable lua55 build. 2026-01-23 22:39:41 +01:00
ec7c73b99c Enable lua55 build 2026-01-21 21:44:23 +01:00
8 changed files with 31 additions and 44 deletions

1
.gitattributes vendored
View File

@@ -21,3 +21,4 @@
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*.changes merge=merge-changes

7
.gitignore vendored
View File

@@ -1,5 +1,8 @@
.osc
*.osc
_scmsync.obsinfo
_buildconfig-*
_buildinfo-*.xml
lua-luautf8-*-build/
*.obscpio
_build.*
.pbuild
lua*luautf8-*-build/

BIN
0.1.6.tar.gz LFS

Binary file not shown.

BIN
0.2.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -2,4 +2,5 @@
<package>luajit</package>
<package>lua53</package>
<package>lua54</package>
<package>lua55</package>
</multibuild>

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Tue Feb 3 01:37:49 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Upgrade to 0.2.0, Modernized API & New Truncation Features:
- BREAKING: utf8.width() and utf8.widthindex() parameter order
changed
- BREAKING: ambi_is_double (boolean) replaced with ambiwidth
(integer)
- NEW: utf8.widthlimit() for intelligent width-based truncation
- NEW: Byte range parameters i, j for width functions
- NEW: utf8.version constant
- IMPROVED: Complete documentation rewrite with examples
- IMPROVED: Comprehensive test coverage for all new features
- FIXED: Various grammar and formatting issues in documentation
-------------------------------------------------------------------
Fri Jan 23 21:39:41 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Enable lua55 build.
-------------------------------------------------------------------
Fri Oct 24 14:50:10 UTC 2025 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -28,7 +28,7 @@
%define luarock_arch %{_arch}
%endif
%endif
Version: 0.1.6
Version: 0.2.0
Release: 0
Summary: A utf-8 support module for Lua and LuaJIT
License: MIT
@@ -36,9 +36,6 @@ Group: Development/Languages/Other
URL: https://github.com/starwing/luautf8
# Source: %%{mod_name}-%%{version}.tar.zst
Source: https://github.com/starwing/luautf8/archive/refs/tags/%{version}.tar.gz
# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com
# this patch makes things totally awesome
Patch0: warnings-away.patch
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-luarocks
BuildRequires: lua-macros

View File

@@ -1,35 +0,0 @@
---
lutf8lib.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: luautf8-0.1.6/lutf8lib.c
===================================================================
--- luautf8-0.1.6.orig/lutf8lib.c 2025-10-12 03:12:28.128159114 +0200
+++ luautf8-0.1.6/lutf8lib.c 2025-10-12 03:27:47.904089867 +0200
@@ -626,7 +626,7 @@
if (fixedup) {
/* The preceding starter/combining mark sequence was bad; convert fixed-up codepoints
* to UTF-8 bytes */
- if (starter != -1)
+ if (starter != (utfint)-1)
add_utf8char(buff, starter);
for (unsigned int i = 0; i < vec_size; i++)
add_utf8char(buff, vector[i] >> 8);
@@ -643,7 +643,7 @@
}
vec_size = 0; /* Clear vector of combining marks in readiness for next such sequence */
fixedup = 0;
- } else if (starter != -1) {
+ } else if (starter != (utfint)-1) {
/* This starter was preceded immediately by another starter
* Check if this one should combine with it */
fixedup = 0;
@@ -725,7 +725,7 @@
if (vec_size)
goto process_combining_marks; /* Finish processing trailing combining marks */
- if (starter != -1)
+ if (starter != (utfint)-1)
add_utf8char(buff, starter);
if (vector != onstack)