Skip to content

Incomplete backport of unicode_gen for unicode 17 #1631

Closed

Description

@kapouer

In version 0.16.0,
this commit: bellard/quickjs@b226856
has been backported but the resulting unicode_gen_def.h is not the same.

Even with that, I can't rebuild a libunicode-table.h that lets libunicode.c compile:

[ 22%] Building C object CMakeFiles/qjs.dir/libunicode.c.o
/usr/bin/x86_64-linux-gnu-gcc -DQJS_BUILD_LIBC -DQJS_ENABLE_INSTALL -DQUICKJS_NG_BUILD -D_GNU_SOURCE -I/build/reproducible-path/quickjs-ng-0.16.0 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/quickjs-ng-0.16.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -fvisibility=hidden -Wall -Wextra -Wformat=2 -Wno-implicit-fallthrough -Wno-sign-compare -Wno-missing-field-initializers -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-result -Wno-stringop-truncation -Wno-array-bounds -funsigned-char -MD -MT CMakeFiles/qjs.dir/libunicode.c.o -MF CMakeFiles/qjs.dir/libunicode.c.o.d -o CMakeFiles/qjs.dir/libunicode.c.o -c /build/reproducible-path/quickjs-ng-0.16.0/libunicode.c
/build/reproducible-path/quickjs-ng-0.16.0/libunicode.c: In function ‘unicode_sequence_prop1’:
/build/reproducible-path/quickjs-ng-0.16.0/libunicode.c:1714:10: error: ‘UNICODE_SEQUENCE_PROP_Basic_Emoji’ undeclared (first use in this function); did you mean ‘UNICODE_PROP_Basic_Emoji2’?
 1714 |     case UNICODE_SEQUENCE_PROP_Basic_Emoji:
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |          UNICODE_PROP_Basic_Emoji2

Activity

  1. kapouer commented on Aug 3, 2026

    @kapouer
    ContributorAuthor

    It's not the commit itself but rather, maybe, a missing commit ?

  2. saghul commented on Aug 3, 2026

    @saghul
    Contributor

    I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions