Mark0's Forum

Software => TrID File Identifier => Topic started by: jenderek on September 10, 2023, 08:44:14 AM

Title: error trid: loadlocale.c:129: Assertion
Post by: jenderek on September 10, 2023, 08:44:14 AM
Hello trid users,

some weeks ago i installed Linux Mint 21.1. So i installed there the
Linux/x86-64 port of TrID v2.24. I used TrID on an older SUSE system. There
all works as expected. The relevant environment variables are set like:
LC_CTYPE="de_DE.UTF-8"
LANG="POSIX"

On my MINT system by default the relevant environment variables are set like:
LANG="de_DE.UTF-8"
LANGUAGE="de_DE"

When calling TrID command by line like:
     ./trid -n:2 *.db
     
i get following error message:
trid: loadlocale.c:129: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Abgebrochen (Speicherabzug geschrieben)

OK i have enough knowledge to heal the symptoms but i was not able to solve
and repair this error. It works as it should do after i have run the following
command:
   unset LANG

I hope this error can be fixed. Thanks
Jörg Jenderek

Title: Re: error trid: loadlocale.c:129: Assertion
Post by: Mark0 on September 15, 2023, 01:33:38 PM
It's indeed a localization issue, and I'm not too familiar with the Linux way of dealing with this.
See if this can help: https://unix.stackexchange.com/questions/444102/loadlocale-c-nl-intern-locale-data-assertion-error