[Bug 265319] localedef -c explodes with internal fault (/usr/src/usr.bin/localedef/localedef.c:89)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Jul 2022 23:33:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265319

            Bug ID: 265319
           Summary: localedef -c explodes with internal fault
                    (/usr/src/usr.bin/localedef/localedef.c:89)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: nabijaczleweli@nabijaczleweli.xyz

[build@build /tmp]$ uname -a
FreeBSD build 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212
GENERIC amd64

[build@build /tmp]$ localedef  -cv ./"cs_CZ.UTF-8"
Processing locale ./cs_CZ.UTF-8.
Loading POSIX portable characters.
internal fault (/usr/src/usr.bin/localedef/localedef.c:89)^C

This appears to correspond to the INTERR in
const char *
category_name(void)
{
        switch (get_category()) {
        case T_CHARMAP:
                return ("CHARMAP");
        case T_WIDTH:
                return ("WIDTH");
        case T_COLLATE:
                return ("LC_COLLATE");
        case T_CTYPE:
                return ("LC_CTYPE");
        case T_MESSAGES:
                return ("LC_MESSAGES");
        case T_MONETARY:
                return ("LC_MONETARY");
        case T_NUMERIC:
                return ("LC_NUMERIC");
        case T_TIME:
                return ("LC_TIME");
        default:
                INTERR;
                return (NULL);
        }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.