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

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Mar 2023 11:34:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265319

--- Comment #2 from наб <nabijaczleweli@nabijaczleweli.xyz> ---
If it did, I'd've included it. This happens before it reads the first byte:

$ localedef  -cv ./"cs_CZ.UTF-8" < /dev/null
Processing locale ./cs_CZ.UTF-8.
Loading POSIX portable characters.
internal fault (/usr/src/usr.bin/localedef/localedef.c:89)<stdin>: 1: error:
syntax error
$ sleep 1000 | 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)

Re-tested on FreeBSD build 13.1-RELEASE-p6 FreeBSD 13.1-RELEASE-p6 GENERIC
amd64.

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